Skip to content
Get started
V2 Reference
Chat Messages

Edit Message

POST
/api/partner/v2/chats/{chat_id}/chat_messages/{id}/edit
curl --request POST \
--url https://api.linqapp.com/api/partner/v2/chats/1/chat_messages/1/edit \
--header 'Content-Type: application/json' \
--header 'X-LINQ-INTEGRATION-TOKEN: <X-LINQ-INTEGRATION-TOKEN>' \
--data '{ "text": "Updated message text" }'

Edits an existing message in the chat

chat_id
required
integer

The chat ID

id
required
integer

The message ID

Media type application/json
object
text
required
string
Example
Updated message text

Message edited successfully

Media type application/json
object
message
string
data
object
id
integer
text
string
Example
{
"message": "Message edited successfully",
"data": {
"id": 243062,
"text": "nice"
}
}