---
title: "Add a comment to an exception"
method: POST
path: "/v1/exceptions/{exceptionId}/comments"
tags: ["Exception"]
---

# Add a comment to an exception

`POST /v1/exceptions/{exceptionId}/comments`

Use this endpoint to add a comment to a specific exception. Comments help track team discussions, decisions, and investigation notes.

## Path parameters

- `exceptionId` string, required

## Headers

- `X-Request-Id` string
- `X-Idempotency-Key` string

## Request body

- AddCommentRequest — Request payload for adding a comment to an exception
  - `content` string, required — Comment text content

## Response `201`

Comment added successfully.

The response includes the `X-Idempotency-Replayed` header.

If the value is false, the request was just processed. If the value is true, the response is a replay of a previously processed request.

See [Retries and idempotency](/en/reference/retries-idempotency) for more details.

- CommentResponse — A comment on an exception
  - `id` string — Unique identifier of the comment
  - `exceptionId` string — The exception this comment belongs to
  - `author` string — Author of the comment
  - `content` string — Comment text content
  - `createdAt` string, date-time — Timestamp when the comment was created
  - `updatedAt` string, date-time — Timestamp when the comment was last updated

## Other responses

- `400` — The request contains invalid parameters or payload.
- `401` — The request lacks valid authentication credentials.
- `403` — You do not have permission to access this resource.
- `404` — Exception not found
- `500` — An unexpected error occurred on the server.

---

[API](https://skmtc.net/lerian/apis/identity-plugin.md) · [All operations](https://skmtc.net/lerian/apis/identity-plugin/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lerian/identity-plugin/versions/25daba385532/schema)
