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:
| Name | Type | Description |
|---|---|---|
cardId | number | Required. The ID of the card containing the comment to update. |
commentId | number | Required. The ID of the comment that needs to be updated. |
Payload
The request body should contain a JSON object with the following property:
| Name | Type | Description |
|---|---|---|
text | string | Required. 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