Skip to main content

PUT /cards/{cardId}/comments/{cardId}

Description

Updates a comment in a card and returns a json object with the card ID

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

Query parameters

The query parameter is sent in the request line:

NameTypeDescription
cardIdnumberRequired. The ID of the card, which comment is updated.
commentIdnumberRequired. The ID of the comment to be updated.

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's content",
"date": "2023-05-18T09:13:56.656Z",
}

Response

The server returns a json object with a card ID.

Example:

{
"id": 4
}

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


Related articles: Working with server