---
title: "Edit a comment"
method: PUT
path: "/comments/{id}"
tags: ["comments"]
---

# Edit a comment

`PUT /comments/{id}`

## Request

- Base URL: `https://api.onplana.com/api`
- URL: `https://api.onplana.com/api/comments/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

## Path parameters

- `id` string, required

## Headers

- `X-Organization-Id` string, required

## Request body

- object
  - `body` string, required

## Response `200`

Updated

- Comment
  - `id` string, uuid, required
  - `body` string, required
  - `authorId` string, uuid, required
  - `projectId` string, uuid, nullable
  - `taskId` string, uuid, nullable
  - `proposalId` string, uuid, nullable
  - `parentId` string, uuid, nullable: Parent comment id for threaded replies.
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time

## Other responses

- `400`: Validation error
- `401`: Unauthorized - missing or invalid JWT
- `403`: Forbidden - insufficient role
- `404`: Not found

---

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