Chat Update
Updates a message.
Authorization
slackAuth chat:write:user, chat:write:botIn: header
Scope: chat:write:user, chat:write:bot
Header Parameters
Authentication token. Requires scope: chat:write
Value in
- "application/x-www-form-urlencoded"
Request Body
application/x-www-form-urlencoded
Pass true to update the message as the authed user. Bot users in this context are considered authed users.
A JSON-based array of structured attachments, presented as a URL-encoded string. This field is required when not presenting text. If you don't include this field, the message's previous attachments will be retained. To remove previous attachments, include an empty array for this field.
A JSON-based array of structured blocks, presented as a URL-encoded string. If you don't include this field, the message's previous blocks will be retained. To remove previous blocks, include an empty array for this field.
Channel containing the message to be updated.
Find and link channel names and usernames. Defaults to none. If you do not specify a value for this field, the original value set for the message will be overwritten with the default, none.
Change how messages are treated. Defaults to client, unlike chat.postMessage. Accepts either none or full. If you do not specify a value for this field, the original value set for the message will be overwritten with the default, client.
New text for the message, using the default formatting rules. It's not required when presenting blocks or attachments.
Timestamp of the message to be updated.
Response Body
application/json
application/json
curl -X POST "https://example.com/chat.update" \ -H "token: string" \ -H "Content-Type: application/x-www-form-urlencoded" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d 'channel=string&ts=string'{ "channel": "string", "message": { "attachments": [ {} ], "blocks": {}, "text": "string" }, "ok": "True", "text": "string", "ts": "string"}
