Skip to main content

POST /cards/{cardId}/comments

Description

Adds a new comment(s) to the card and returns a json object with the card ID

The route handles the HTTP POST request made to the /cards/{cardId}/comments path.

Payload

The server expects to receive a json object with the next properties:

NameTypeDescription
textstringRequired. The comment's text.
dateobjectRequired. The comment's date.

Example:

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

Response

The route returns a json object with a card ID, to which the new comment(s) will be added to.

Example:

{ 
"id": 1
}

The HTTP status code shows whether the request succeeds (response.status == 200) or fails (response.status == 500).


Related articles: Working with server