Skip to main content

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

Description

This endpoint updates an existing comment within a card and returns a JSON object containing the ID of the updated comment.

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

Path parameters

The following parameters are included in the request URL:

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

Payload

The server expects a JSON object with the following property:

NameTypeDescription
textstringRequired. The updated content 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 result of the request: a status of 200 means success, while 500 indicates a failure.


Related articles: Working with server