PUT/comments/{id}
Replace comment
Full replacement. All mutable fields overwritten. Triggers `comments.updated` webhook.
Parameters 1
| Name | Type | Description |
|---|---|---|
idrequired | path · integer | Resource identifier |
ReturnsComment
AcceptsCommentInput
Bearer token required
Response examples
200Comment replaced
{
"id": 1,
"postId": 1,
"userId": 1,
"body": "How does this compare to the approach described in the official docs?",
"likes": 16,
"createdAt": "2023-04-28T06:59:47.906Z"
}400400 — invalid input or malformed JSON
{
"error": {
"status": 400,
"message": "Request body required"
}
}404404 — resource not found
{
"error": {
"status": 404,
"message": "users #999 not found"
}
}