Skip to main content

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

Description

Updates a comment within a card and returns a JSON object containing the ID of the updated comment.

This route processes an HTTP PUT request sent to the cards/{cardId}/comments/{commentId} endpoint.

Path parameters

The following parameters are included in the request URL:

NameTypeDescription
cardIdnumberRequired. The ID of the card containing the comment to update.
commentIdnumberRequired. The ID of the comment that needs to be updated.

Payload

The request body should contain a JSON object with the following property:

NameTypeDescription
textstringRequired. The updated text of the comment.

Example:

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

Response

The server responds with a JSON object containing the ID of the updated comment.

Example:

{
"id": 4
}

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


Related articles: Working with server