---
title: "PATCH /api/capa/actions/{actionId}/comments/{commentId}"
method: PATCH
path: "/api/capa/actions/{actionId}/comments/{commentId}"
tags: ["CAPA"]
---

# PATCH /api/capa/actions/{actionId}/comments/{commentId}

`PATCH /api/capa/actions/{actionId}/comments/{commentId}`

Update an existing comment on a CAPA action

## Path parameters

- `actionId` string, required
- `commentId` string, required

## Request body

- object
  - `content` string, required
  - `attachmentIds` string[]

## Response `200`

Default Response

- object
  - `metadata` object, required
    - `success` boolean, required — True when the request succeeded.
  - `data` object, required
    - `id` string, required
    - `actionId` string, required
    - `content` string, required
    - `repliedTo` string, nullable, required
    - `attachmentIds` string[], required
    - `visibility` 'PUBLIC' | 'PRIVATE' | 'ADMINNOTE', required
    - `createdAt` string, required
    - `createdByUserId` string, required
    - `createdByCompanyId` string, required
    - `updatedAt` string, nullable, required
    - `isEdited` boolean, required

## Other responses

- `400` — Default Response
- `403` — Default Response
- `404` — Default Response

## Changes

> 23 revisions in range; 1 not diffed.

- **2026-08-31** `97e51f27dc77` — 2 breaking, 2 info
  - the response property `data/repliedTo` became nullable for the status `200`
  - the response property `data/updatedAt` became nullable for the status `200`
  - response property `data/repliedTo` list-of-types was narrowed by removing types `null` from media type `application/json` of response `200`
  - response property `data/updatedAt` list-of-types was narrowed by removing types `null` from media type `application/json` of response `200`

[Change history](https://skmtc.dev/retraced/apis/api-reference/changes/api/capa/actions/:actionId/comments/:commentId/patch.md)

---

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