⚠️ Note |
This API endpoint has been deprecated, please update to the latest version. |
Add a reaction to a comment.
curl -X POST \
https://<<META.tenant.domain>>/api/v1/cases/<<case_id>>/comments/<<comment_id>>/add_reaction \
-H 'content-type: application/json' \
-H 'Authorization: Bearer <<CREDENTIAL.tines_api_key>>' \
-d '{
"value": "heart"
}'
A successful request will return a JSON object describing the updated comment with the reaction added for the authenticated user.
{
"case_id": 42,
"id": 126,
"action": "COMMENTED",
"value": "Comment value",
"user": {
"user_id": "1",
"first_name": "John",
"last_name": "Smith",
"email": "john.smith@example.com",
"avatar_url": "https://lh3.googleusercontent.com/a/QslEzz3Af-SGcswUnWBH7Fw-FKOAA=s96-c"
},
"reactions": [
{
"emoji": ":heart:",
"reactants": [
{
"user_id": 1,
"user_name": "John Smith",
"reacted_at": "2024-03-12T10:06:38+00:00"
}
]
}
]
}