清除单元格区域内所有内容新版SDK
更新于 2024-12-27
调用本接口,清除某个区域内的所有内容,包括格式和数据。实现的效果与下图操作一致。

权限
要调用此API,需要以下权限之一。
应用类型 | 是否支持 | 权限 | API Explorer调试 |
---|---|---|---|
企业内部应用 | 支持 | 钉钉表格写权限 | API Explorer |
第三方企业应用 | 支持 | 钉钉表格写权限 | API Explorer |
第三方个人应用 | 暂不支持 | 暂不支持 | 暂不支持 |
请求方法
Header参数
名称 | 类型 | 是否必填 | 描述 |
---|---|---|---|
x-acs-dingtalk-access-token | String | 是 | 调用该接口的访问凭证。
|
Path参数
Query参数
返回参数
名称 | 类型 | 描述 |
---|---|---|
a1Notation | String | 单元格地址。 |
示例
请求示例
返回示例
错误码
HttpCode | 错误码 | 错误信息 | 说明 |
---|---|---|---|
400 | invalidRequest.inputArgs.invalid | %s | 请求参数不合法,请查看错误信息。 |
400 | invalidRequest.inputArgs.workbookIdIllegal | The workbookId is illegal. | workbookId不合法。 |
400 | invalidRequest.resource.notWorkbook | %s | 不支持的文档类型,请检查workbookId。 |
403 | forbidden.accessDenied | The operator has no permission. | 当前用户无此操作权限。 |
403 | forbidden.acrossOrg | %s | 请求不合法,请检查要访问的文档是否归属于accessToken指定的组织。 |
403 | forbidden.operationIllegal | %s | 请求操作不合法,请查看错误信息。 |
403 | forbidden.document.sizeOverLimit | The document size is over limit and the server is unable to complete your request. Retry is unlikely to work unless the document size is decreased. | 表格内容过大,请尝试缩减表格内容。 |
404 | invalidRequest.resource.notFound | %s | 请求失败,无法找到要访问的资源。 |
500 | serviceBusy | The server is busy and unable to complete your request. Please try again later. | 服务繁忙,请稍后重试。 |
500 | internalError | The server encountered an internal error and was unable to complete your request. Please try again later. | 服务内部错误,请稍后再试。 |