Edit a message
You can edit the text field and the custom data of any message that you know the message ID (id) of. To find the id of the message you want to edit, use the endpoint to list messages in a conversation, or get a list of messages via a Webhook.
To automatically add a timestamp to the message's editedAt field for when a message was last edited, pass the markEdited field and set it to true. Depending on your theme, an indicator that the user edited the message can now appear in the chat UI.
Request
- Base URLhttps://api.talkjs.com
- Auth
- HTTP bearer
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
A unique identifier of your TalkJS app. You can find your app ID on the Settings page of your dashboard.
A unique identifier of a conversation.
An automatically generated unique identifier of a message.
Request body
Example request
{
"custom": {
"priority": "medium"
},
"text": "Hi, how are you?",
"markEdited": true
}Response
Empty response
Empty response
Changes
No recorded changes to this operation across all 1 revision of this API.