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

# POST /api/capa/actions/{actionId}/comments/

`POST /api/capa/actions/{actionId}/comments/`

Create a new comment on a CAPA action

## Path parameters

- `actionId` string, required

## Request body

- object
  - `content` string, required
  - `repliedTo` string, nullable
  - `visibility` 'PUBLIC' | 'PRIVATE' | 'ADMINNOTE'
  - `attachmentIds` string[]

## Response `201`

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

## Other responses

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

## Changes

> 23 revisions in range; 1 not diffed.

- **2026-08-31** `97e51f27dc77` — 4 breaking, 1 warning, 3 info
  - request property `repliedTo` list-of-types was narrowed by removing types `null` from media type `application/json`
  - the `repliedTo` request property's minLength was increased from `0` to `1`
  - the response property `data/repliedTo` became nullable for the status `201`
  - the response property `data/updatedAt` became nullable for the status `201`
  - …4 more

[Change history](https://skmtc.dev/retraced/apis/api-reference/changes/api/capa/actions/:actionId/comments/post.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)
