更新订阅状态
PATCH
https://open.feishu.cn/open-apis/drive/v1/files/{file_token}/subscriptions/{subscription_id}
https://open.feishu.cn/open-apis/drive/v1/files/{file_token}/subscriptions/{subscription_id}
错误码
HTTP状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
400 | 1064000 | Illegal parameter | 检查参数有效性 |
403 | 1064030 | Permission denied | 检查文档权限,订阅评论至少需要阅读的权限 |
404 | 1064040 | Token not exist | 检查文档是否能正常访问 |
500 | 1065000 | Internal Server Error | 重试,若稳定失败请联系相关业务方oncall人员 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://open.feishu.cn/open-apis/drive/v1/files/doxcnxxxxxxxxxxxxxxxxxxxxxx/subscriptions/1234567890987654321' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{"is_subscribe":false, "file_type":"docx"}'
响应示例响应示例
{
"code": 0,
"data": {
"file_type": "docx",
"is_subcribe": false,
"subscription_id": "xxxxxxxx",
"subscription_type": "comment_update"
},
"msg": "success"
}
请求参数
Path 参数
file_token
string
文档token
示例值:
doxcnxxxxxxxxxxxxxxxxxxxxxx
subscription_id
string
订阅关系ID
示例值:
1234567890987654321
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Content-Type
string
必需
默认值:
application/json; charset=utf-8
Body 参数application/json
返回响应
修改于 2023-01-18 09:52:46