Skip to main content

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.

SettingValue
MethodPATCH
Path/api/v1/accounts/{account_id}/conversations/{conversation_id}/messages/{message_id}/reaction
AuthorizationUser token.

Permissions:

Path parameters

NameTypeRequiredDescription
account_idintegerYesAccount ID.
conversation_idintegerYesConversation display ID.
message_idintegerYesMessage ID.

Body parameters (JSON)

NameTypeRequiredDescription
reaction_iconstringYesA 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โ€‹

The message, with the reaction in content_attributes.reaction_icon.