Skip to main content

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

Description

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

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

Path parameters

The next parameters are 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.

Example:

{
"text": "The comment's content"
}

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