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