Add Message Reaction
Description
Section titled “Description”PUT /admin/message/reaction
Updates the reactions of a message. Can add/remove reactions. All online participants of the conversation will receive the update reaction message in real-time.
Authorization
Section titled “Authorization”{ Admin-Api-Key: {{ HTTP_ADMIN_API_KEY }} }
Request
Section titled “Request”Content-Type: application/json
{ "senderId": "63480e68f4794709f802a2fa", "messageReaction": { "mid": "63077ad836b78c3d82af0812", "add": "🤐", "remove": "👍" }}
Request Parameters
Section titled “Request Parameters”Field | Type | Description |
---|---|---|
senderId | string | User ID of the user who update reaction |
messageReaction.mid | string | Message ID to update reaction |
messageReaction.add | string | Reaction to add |
messageReaction.remove | string | Reaction to remove |
Successful Response
Section titled “Successful Response”{ "success": true}
Real-time Message
Section titled “Real-time Message”Broadcasted to Other Online Participants
{ "message_reactions_update": { "mid": "63077ad836b78c3d82af0812", "cid": "63077ad836b78c3d82af0815", "from": "63480e68f4794709f802a2fa", "add": "🤐", "remove": "👍" }}