撤回消息
DELETE
https://open.feishu.cn/open-apis/im/v1/messages/{message_id}
https://open.feishu.cn/open-apis/im/v1/messages/{message_id}
注意事项:
错误码
HTTP状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
400 | 230001 | Your request contains an invalid request parameter. | 参数错误,请根据接口返回的错误信息并参考文档检查输入参数。 |
400 | 230002 | The bot can not be outside the group. | 机器人不在对应群组中。 |
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 | 230050 | The message is invisible to the operator. | 该消息对于操作者不可见,无法进行本操作。 |
400 | 230054 | This operation is not supported for this message type. | 该消息类型不支持本操作,详情参见消息与群组部分API增加不支持的消息类型校验。 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request DELETE 'https://open.feishu.cn/open-apis/im/v1/messages/' \
--header 'Authorization;'
响应示例响应示例
{
"code": 0,
"msg": "success",
"data": {}
}
请求参数
Path 参数
message_id
string
必需
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Content-Type
string
必需
默认值:
application/json; charset=utf-8
返回响应
修改于 2023-01-12 08:38:51