删除文档版本
DELETE
https://open.feishu.cn/open-apis/drive/v1/files/{file_token}/versions/{version_id}
错误码
HTTP状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
403 | 1068400 | Has no permission, please apply the file permission of reading or edition. | 无阅读/编辑权限,请申请源文档的阅读/编辑权限。 |
404 | 1068403 | File does not exist, please check the file status. | 文档版本不存在,请检查版本文档是否已被删除。 |
404 | 1068404 | Parent file does not exist, please check the file status. | 源文档不存在,请检查文档是否已删除。 |
400 | 1068410 | Params error, param [file_token] is wrong. | file_token 请求参数错误,请检查参数。 |
400 | 1068411 | Params error, param [obj_type] is wrong. | obj_type 请求参数错误,请检查参数。 |
400 | 1068425 | Request failed, please contact the engineer-https://applink.feishu.cn/TLJsX982. | 请求失败,请联系业务方oncall。 |
400 | 1068412 | Params error, param [version_id] is wrong. | version_id 请求参数错误,请检查参数。 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request DELETE 'https://open.feishu.cn/open-apis/drive/v1/files/doxbcyvqZlSc9WlHvQMlSJwUrsb/versions/file_version?obj_type' \
--header 'Authorization;'
响应示例响应示例
{
"code": 0,
"msg": "success",
"data": {}
}
请求参数
Path 参数
file_token
string
版本文档token
示例值:
doxbcyvqZlSc9WlHvQMlSJwUrsb
version_id
string
版本文档版本号
示例值:
file_version
Query 参数
obj_type
string
必需
user_id_type
string
可选
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Content-Type
string
必需
默认值:
application/json; charset=utf-8
返回响应
修改于 2023-01-13 06:38:19