批量撤回消息
DELETE
/open-apis/im/v1/batch_messages/{batch_message_id}
自建应用商店应用
注意事项:
错误码
HTTP状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
400 | 230001 | Your request contains an invalid request parameter. | 参数错误,请根据接口返回的错误信息并参考文档检查输入参数。 |
400 | 230006 | Bot ability is not activated. | 机器人能力未启用 。在开发者后台-应用功能-机器人页面开启机器人功能并发布上线。 |
400 | 230009 | Message can only be recalled within one days. | 消息发出时间过长(1天),不能执行当前操作。 |
400 | 230026 | No permission to recall this message. | 机器人没有权限撤回该消息,只能撤回机器人自己发出的消息。 |
400 | 230027 | Lack of necessary permissions. | 请根据本文档中的权限要求部分补充所需权限。 |
400 | 230030 | The message id is invalid, record not found. | 检查传入的batch_message_id是否正确。 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request DELETE 'https://open.feishu.cn/open-apis/im/v1/batch_messages/bm-dc13264520392913993dd051dba21dcf' \
--header 'Authorization;' \
--header 'Content-Type: text/plain' \
--data-raw 'curl --location --request DELETE '\''https://open.feishu.cn/open-apis/im/v1/batch_messages/bm-dc13264520392913993dd051dba21dcf'\'' \
--header '\''Authorization: Bearer t-e811da948d9a2803433be10458f650c842799970'\'''
响应示例响应示例
{
"code": 0,
"data": {},
"msg": "ok"
}
请求参数
Path 参数
batch_message_id
string
必需
示例值:
bm-dc13264520392913993dd051dba21dcf
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Body 参数text/plain