---
title: "Update task comment"
method: PUT
path: "/comment/{id}"
tags: ["Comments"]
---

# Update task comment

`PUT /comment/{id}`

Edit a comment. Only the comment's author may do this.

## Path parameters

- `id` string, required

## Request body

- object
  - `content` string, required

## Response `200`

The updated comment

- Activity
  - `id` string, required
  - `taskId` string, required
  - `type` string, required — One of: comment, task, create, status_changed, priority_changed, assignee_changed, unassigned, due_date_changed, title_changed, description_changed.
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `userId` string, nullable, required
  - `content` string, nullable, required
  - `eventData` unknown
  - `externalUserName` string, nullable, required — Set when the activity was imported from another tool.
  - `externalUserAvatar` string, nullable, required
  - `externalSource` string, nullable, required — The tool it was imported from, e.g. planka, trello, jira.
  - `externalUrl` string, nullable, required

## Other responses

- `400` — Invalid body, or unknown comment
- `401` — Missing or invalid credentials
- `403` — Not the author, or missing task:update permission
- `404` — Comment not found

## Changes

- **2026-08-24** `08bbb5bedb5d` — 2 breaking, 1 warning, 10 info
  - the response property `content` became nullable for the status `200`
  - the response property `userId` became nullable for the status `200`
  - removed the optional property `user` from the response with the `200` status
  - added the non-success response with the status `400`
  - …9 more
- **2026-07-11** `32cece1ebe43` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/usekaneo/apis/kaneo-api/changes/comment/:id/put.md)

---

[API](https://skmtc.dev/usekaneo/apis/kaneo-api.md) · [All operations](https://skmtc.dev/usekaneo/apis/kaneo-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/usekaneo/kaneo-api/revisions/200744ae0bef/schema)
