Set Message Reaction
PATCH/accounts/:account_id/conversations/:conversation_id/messages/:message_id/reaction
Stores an emoji reaction on a message.
The reaction is stored in content_attributes.reaction_icon. Send an empty
string to clear it.
| Setting | Value |
|---|---|
| Method | PATCH |
| Path | /api/v1/accounts/{account_id}/conversations/{conversation_id}/messages/{message_id}/reaction |
| Authorization | User token. |
Permissions:
- User token โ any agent who can see the conversation (see Who can see a conversation).
- Agent-bot token: not allowed.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
account_id | integer | Yes | Account ID. |
conversation_id | integer | Yes | Conversation display ID. |
message_id | integer | Yes | Message ID. |
Body parameters (JSON)
| Name | Type | Required | Description |
|---|---|---|---|
reaction_icon | string | Yes | A single emoji, e.g. ๐. Send an empty string to clear the reaction. |
Example request
curl -X PATCH 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/messages/40113/reaction' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "reaction_icon": "๐" }'
Example response (200 OK): the full message object, with:
{
"id": 40113,
"content_attributes": {
"reaction_icon": "๐"
}
}
Requestโ
Responsesโ
- 200
- 401
- 403
- 404
The message, with the reaction in content_attributes.reaction_icon.
The access token is missing or wrong, or its user does not belong to this account.
The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.
The resource does not exist in this account.