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

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

Body Parameters

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

Response

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

Error Responses