Skip to main content

Update a comment

Updates the specified comment by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

Parameters

content
string
required
Content of the comment.

Returns

Returns the Comment object if the update succeeded. Throws an error if update parameters are invalid.

put
/api/cards/{id}/comments/{id}
curl -X PUT https://{workspace}.kitchen.co/api/cards/{id}/comments/{id} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'X-Requested-With: XMLHttpRequest' \
-H 'Authorization: Bearer {API_KEY}'
Response
{
"author": "u_c01bb6102b6ddadd4b1f020e",
"board": "tskb_1lbg89ha9ttb5dmxuldku3nx",
"card": "tsk_1lbg89ha9ttb5dmxuldku3nx",
"content": "The comment content",
"created_at": "2024-01-23T23:09:00+00:00",
"format": "text",
"id": "msg_3447589816730d8ba4e50528",
"updated_at": "2024-01-23T23:09:00+00:00"
}