---
title: "Add a reaction to an entity"
method: PUT
path: "/{kind}/{id}/reactions"
tags: ["task"]
---

# Add a reaction to an entity

`PUT /{kind}/{id}/reactions`

Add a reaction to an entity. Will do nothing if the reaction already exists.

## Path parameters

- `id` integer, required
- `kind` integer, required

## Request body

- ModelsReaction
  - `created` string — A timestamp when this reaction was created. You cannot change this value.
  - `user` UserUser
    - `bot_owner_id` integer — BotOwnerID is the ID of the owning (human) user if this user is a bot. A non-zero value means this user is a bot and cannot authenticate via password.
    - `created` string — A timestamp when this task was created. You cannot change this value.
    - `email` string — The user's email address.
    - `id` integer — The unique, numeric id of this user.
    - `name` string — The full name of the user.
    - `updated` string — A timestamp when this task was last updated. You cannot change this value.
    - `username` string — The username of the user. Is always unique.
  - `value` string — The actual reaction. This can be any valid utf character or text, up to a length of 20.

## Response `201`

The created reaction

- ModelsReaction
  - `created` string — A timestamp when this reaction was created. You cannot change this value.
  - `user` UserUser
    - `bot_owner_id` integer — BotOwnerID is the ID of the owning (human) user if this user is a bot. A non-zero value means this user is a bot and cannot authenticate via password.
    - `created` string — A timestamp when this task was created. You cannot change this value.
    - `email` string — The user's email address.
    - `id` integer — The unique, numeric id of this user.
    - `name` string — The full name of the user.
    - `updated` string — A timestamp when this task was last updated. You cannot change this value.
    - `username` string — The username of the user. Is always unique.
  - `value` string — The actual reaction. This can be any valid utf character or text, up to a length of 20.

## Other responses

- `403` — The user does not have access to the entity
- `500` — Internal error

---

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