Endpoint#
| Property | Value |
|---|
| Type | mutation |
| Method | POST |
| Path | /api/external/v1/add_reaction |
| Handler | OperatelyWeb.Api.Mutations.AddReaction |
Authentication#
- Requires a valid API token.
- Requires a write-enabled token.
- Read-only tokens return
403.
| Field | Type | Required | Nullable | Default |
|---|
entity_id | id primitive (encoded as string) | Yes | No | - |
entity_type | reaction_entity_type enum (project_check_in, project_retrospective, comment_thread, goal_update, message, comment, resource_hub_document, resource_hub_file, resource_hub_link) | Yes | No | - |
parent_type | reaction_parent_type enum (project_check_in, project_retrospective, comment_thread, goal_update, message, milestone, project_task, space_task, resource_hub_document, resource_hub_file, resource_hub_link) | No | No | - |
emoji | string | Yes | No | - |
Outputs#
| Field | Type | Required | Nullable |
|---|
reaction | reaction object | Yes | No |
cURL Example#
Copiedcurl --request POST \
--url "https://app.operately.com/api/external/v1/add_reaction" \
--header "Authorization: Bearer ${OPERATELY_API_TOKEN}" \
--header "Content-Type: application/json" \
--data '{"emoji":"value", "entity_id":"value", "entity_type":"project_check_in", "parent_type":"project_check_in"}'
Response Example#
{
"reaction": {
"emoji": "value",
"id": "value",
"person": "<person>"
}
}