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

# Edit a comment

`PATCH /comments/{id}`

## Request

- Base URL: `https://app.buildworkpro.com/api/v1`
- URL: `https://app.buildworkpro.com/api/v1/comments/{id}`
- Auth: HTTP bearer

Edits a comment. Non-elevated roles may only edit their own.

## Path parameters

- `id` integer, required

## Headers

- `Idempotency-Key` string, uuid

## Request body

- object
  - `content` string, required

## Response `200`

Updated

- object
  - `data` Comment, required
    - `id` integer, required
    - `entityType` string, required
    - `entityId` integer, required
    - `userId` integer, nullable, required
    - `content` string, required
    - `parentId` integer, nullable, required
    - `createdAt` union, required
      - string
      - string
    - `updatedAt` union, required
      - string
      - string

## Other responses

- `403`: Error
- `404`: Error

---

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