Update Message
Description
Section titled “Description”PUT /admin/message
Updates the body of a previously sent message. Only the sender can edit the message. All online participants of the conversation will receive the updated message in real-time.
Authorization
Section titled “Authorization”{ Admin-Api-Key: {{ HTTP_ADMIN_API_KEY }} }
Request
Section titled “Request”Content-Type: application/json
{ "organizationId": "680a2fae96cc69d78861f101", "senderId": "63480e68f4794709f802a2fa", "messageEdit": { "id": "63077ad836b78c3d82af0812", "body": "updated message body" }}
Request Parameters
Section titled “Request Parameters”Field | Type | Description |
---|---|---|
organizationId | string | OrganizationId performing request |
senderId | string | User ID of the sender (must match the original message sender) |
messageEdit.id | string | Message ID to be edited |
messageEdit.body | string | New content for the message body |
Successful Response
Section titled “Successful Response”{ "success": true}