---
title: "Toggle a reaction on a comment"
method: POST
path: "/posts/{id}/comments/{commentId}/reactions"
tags: ["Posts"]
---

# Toggle a reaction on a comment

`POST /posts/{id}/comments/{commentId}/reactions`

Adds the token user emoji reaction to a comment. Toggle semantics: sending the same emoji again removes the reaction. Returns the updated reactions of the comment.

## Path parameters

- `id` string, required
- `commentId` string, required

## Request body

- object
  - `emoji` string, required
  - `emojiId` string, required
  - `emojiSkin` union, required
    - 0
    - 1
    - 2
    - 3
    - 4
    - 5
    - 6
  - `emojiNative` string, required

## Response `200`

Updated reactions of the comment

- object
  - `data` object, required
    - `reactions` object[], required
      - `emoji` string, required
      - `emojiId` string, required
      - `emojiSkin` integer, required
      - `emojiNative` string, required
      - `users` object[], required
        - `userId` string, required
        - `userName` string
        - `createdAt` string, date-time

## Other responses

- `400` — Validation error
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Post or comment not found
- `429` — Rate limit exceeded
- `500` — Internal server error

---

[API](https://skmtc.net/planable/apis/planable-public-api.md) · [All operations](https://skmtc.net/planable/apis/planable-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/planable/planable-public-api/revisions/e91a4f756dfe/schema)
