Skip to main content
POST
/
v1
/
exceptions
/
{exceptionId}
/
comments
Add a comment to an exception
curl --request POST \
  --url https://matcher.sandbox.lerian.net/v1/exceptions/{exceptionId}/comments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "<string>"
}
'
{
  "id": "019c96a0-2a10-7dfe-b5c1-8a1b2c3d4e5f",
  "exceptionId": "<string>",
  "author": "<string>",
  "content": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer token authentication (format: "Bearer {token}")

Headers

X-Request-Id
string

A unique identifier for tracing the request across services.

Path Parameters

exceptionId
string
required

The unique identifier of the exception.

Body

application/json

Comment payload

Request payload for adding a comment to an exception

content
string
required

Comment text content

Required string length: 1 - 5000

Response

Comment added successfully

A comment on an exception

id
string

Unique identifier of the comment

Example:

"019c96a0-2a10-7dfe-b5c1-8a1b2c3d4e5f"

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