# Updates the reactions of the comment with the specified id on the document with the specified id.

POST https://api.awork.com/api/v1/documents/{documentId}/comments/{commentId}/react

<Check title="Required Permissions" icon="key">To update a reaction of a comment the user must have at least `read` permissions on the specified document.</Check>

## Request example

```sh
curl -X POST --globoff 'https://api.awork.com/api/v1/documents/{documentId}/comments/{commentId}/react' \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  --data '{
  "emoji": "👍",
  "operation": "add"
}'
```

- path parameter `documentId`: string (required). The id of the document.

- path parameter `commentId`: string (required). The id of the comment.

## Request body (application/json)

- `emoji`: string (required)

- `operation`: string (required)

## Response 204

No Content

## Response 401

Unauthorized

application/json

```json
{
  "code": "not-found",
  "description": "There is no matching path for this URL.",
  "link": "https://developers.awork.com",
  "details": [
    "No project with the id '123' exists."
  ],
  "validationErrors": [
    {
      "property": "FirstName",
      "message": "FirstName is required."
    }
  ],
  "traceId": "a65ce5745df02af216715ff06661fb3a"
}
```

## Response 404

Not Found

application/json

```json
{
  "code": "not-found",
  "description": "There is no matching path for this URL.",
  "link": "https://developers.awork.com",
  "details": [
    "No project with the id '123' exists."
  ],
  "validationErrors": [
    {
      "property": "FirstName",
      "message": "FirstName is required."
    }
  ],
  "traceId": "a65ce5745df02af216715ff06661fb3a"
}
```
