Skip to main content
PATCH
Edit Message
Updates the content, GIF, mentions, or metadata of an existing message. Only the message author can edit their own messages. Deleted or moderator-removed messages cannot be edited. If no fields actually changed, the endpoint returns the current message without updating editedAt.

Path Parameters

string
required
The ID of the conversation.
string
required
The ID of the message to edit.

Body Parameters

All fields are optional. Only provided fields are updated.
string
New text content. After editing, the message must still have at least one of: content, GIF, or an attached file.
string
Updated GIF URL. Set to null to remove the GIF.
array
Updated array of Mention objects.
object
Updated metadata.

Response

Returns the updated ChatMessage, with editedAt set to the current time.

Error Responses