PUT comment/{commentId}

Related

Edit the body of a comment.

Example

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"

Security

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.

URL Parameters

NameDescriptionValue
commentIdthe ID of the commentnumber

Request Body

NameDescriptionValue
bodythe new text content of the commentstring

Response

Successful responses are code 204. Error responses are standard.

Response Body

NONE