---
title: "Add a reaction to a task comment"
method: POST
path: "/to-do/{task_id}/comments/{comment_id}/reactions"
tags: ["task-comment-reactions"]
---

# Add a reaction to a task comment

`POST /to-do/{task_id}/comments/{comment_id}/reactions`

## Request

- Base URL: `https://api.focusbear.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.focusbear.io/to-do/{task_id}/comments/{comment_id}/reactions`
- Auth: HTTP bearer

## Path parameters

- `task_id` string, uuid, required
- `comment_id` string, uuid, required

## Request body

- CreateTaskCommentReactionDto
  - `emoji` string, required: Emoji for the reaction (single emoji character)

## Response `201`

Reaction added successfully

- TaskCommentReactionResponseDto
  - `id` string, required
  - `comment_id` string, required
  - `user_id` string, required
  - `emoji` string, required
  - `user` TaskCommentUserDto
    - `id` string, required
    - `username` string
  - `created_at` string, required
  - `updated_at` string, required

## Other responses

- `403`: User does not have access to this task
- `404`: Comment not found
- `409`: User already reacted with this emoji

---

[API](https://skmtc.dev/focusbear/apis/focusbear-api.md) - [All operations](https://skmtc.dev/focusbear/apis/focusbear-api/llms.txt) - [OpenAPI document](https://skmtc.dev/focusbear/apis/focusbear-api/revisions/3a83a3b9a811?raw)
