Skip to main content

POST /cards/{cardId}/comments

Description

Adds one or more new comments to the specified card and returns a JSON object containing the ID of the newly added comment.

This endpoint processes HTTP POST requests sent to /cards/{cardId}/comments.

Payload

The server expects a JSON object with the following properties:

NameTypeDescription
textstringRequired. The content of the comment.
dateobjectRequired. The date of the comment.

Example:

{
"text": "The comment content",
"date": "2023-05-18T09:13:56.656Z",
}

Response

The response includes a JSON object containing the ID of the newly added comment.

Example:

{ 
"id": 1
}

The HTTP status code indicates the outcome of the request: a status of 200 means success, while 500 indicates an error.


Related articles: Working with server