Delete a chatbot message
DELETE
/im/chat/messages/{message_id}
Chatbot Messages
Scopes:
imchat:bot
Rate Limit Label:
Medium
Authorization Flow: Client Credentials Flow
To get authorized, make a POST request to
/oauth/token
endpoint with grant type as client_credentials
. Use
https://api.zoom.us/oauth/token?grant_type=client_credentials
as the endpoint for the request.You will need to send your ClientID and Secret as a Basic base64 encoded AUthorization header. Ex.
Basic base64Encode({client_id}:{client_sceret})
Next, use the token received (access_token) as a bearer token while making the DELETE /im/chat/messages/{message_id} request to delete a message.
Learn more about how to authotize chatbots in the Chatbot Authorization guide.
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request DELETE 'http://api.zoom.us/v2/im/chat/messages/' \
--form 'account_id=""' \
--form 'robot_jid=""'
响应示例响应示例
{
"message_id": "20191017014024747_XYYRFjM_main",
"robot_jid": "v1pky3qsaoqqwdfdsaf5pl8q@xmppdev.zoom.us",
"sent_time": "2019-10-17 01:40:24",
"to_jid": "xxx@conference.xmppdev.zoom.us",
"user_jid": "jnr_3e_eq4cveeafp3qp6w@xmppdev.zoom.us"
}
请求参数
Path 参数
message_id
string
必需
Body 参数multipart/form-data
account_id
string
必需
robot_jid
string
必需
user_jid
string
可选
返回响应
修改于 2024-04-24 09:06:48