curl --request POST \
--url https://apix.us.amity.co/api/v2/reactions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"referenceId": "<string>",
"referenceType": "message",
"reactionName": "<string>",
"referenceVersion": 123
}'
{
"addedId": "<string>"
}
Add reaction to a document referenced by ID and type.
curl --request POST \
--url https://apix.us.amity.co/api/v2/reactions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"referenceId": "<string>",
"referenceType": "message",
"reactionName": "<string>",
"referenceVersion": 123
}'
{
"addedId": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
reference ID and type with reaction name
The body is of type object
.
Returns a reaction id is added
The response is of type object
.