put https://{appid}.api-{region}.cometchat.io/v3/messages/
Edits the message on behalf of a user.
The following properties can be updated using the update message API:
-> data (text, metadata)
-> tags (note: the existing would be replaced with the new tags passed)Who can update a message ?
-> Message Sender (1-1 conversation)
-> Message Sender (group conversation)
-> Group owner (group conversation)
-> Group moderator (group conversation)In order to edit a message, you need to be either the sender of the message or the admin/moderator of the group in which the message was sent.
For more details please visit here
Request sample:
PUT /messages/:id HTTP/1.1
Content-type: application/json
Accept: application/json
{
"data": {
"text": "string",
"metadata":{
"any key": "value pair",
}
},
"tags": ["array of strings"]
}