در حال بارگذاری…
Updates a specific message in a chat.
| Permission | Description |
|---|---|
chat_messages.update | Update your own messages |
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| chat-id | int | Yes | ID of the chat | 123 |
| message-id | int | Yes | ID of the message to update | 456 |
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| content | string | Yes | Updated message content | "Updated text" |
{
"content": "Updated text"
}
Returns the updated chat message resource.
{ /* chat message resource */ }
For a full schema, see Chat Message Resource.
| Status | Description | Reference |
|---|---|---|
| 422 | Validation error | Validation error |
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden (no permission) | Permission error |
| 404 | Not found | Not-found error |
{message} must belong to {chat}. A message id from another chat returns 404, not 403 — a 403 would
confirm to the caller that the message exists.