Edit the body of a comment.
PUT /api/v1/comment/20 HTTP/1.1
Authorization: Bearer ...
Content-Type: application/json
{
"body": "This is an edited comment."
}
----------------------------------------
HTTP/1.1 204 No Content
ETag: W/"a-bAsFyilMr4Ra1hIU5PyoyFRunpI"Authentication is required. Only admins and the author of a comment is permitted to edit it. Deleted comments cannot be edited. There are no other restrictions to editing a comment.
| Name | Description | Value |
|---|---|---|
| commentId | the ID of the comment | number |
| Name | Description | Value |
|---|---|---|
| body | the new text content of the comment | string |
Successful responses are code 204. Error responses are standard.
NONE