Skip to content

Update Blog Comment

PUT
/api/v1/posts/{id}/comments/{commentId}

Authorizations

SessionAuth

Session ID for authenticated requests

Type
API Key (header: X-Session-ID)

Parameters

Path Parameters

id*
Type
string
Required
commentId*
Type
string
Required

Request Body

application/json
JSON
{
  
"content": "string"
}

Responses

Comment updated

Playground

Server
Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI

Update a blog comment.

Auth: session.

Parameters

NameInTypeRequiredDescription
idpathstringYesPost id
commentIdpathstringYesComment id

Request Body

json
{
	"body": "Edited comment"
}

Response 200

json
{
	"data": { "id": "com_2", "updated": true },
	"user_context": { "authenticated": true },
	"meta": {}
}

Response Errors

  • 400 invalid comment payload
  • 401 missing session
  • 403 not allowed
  • 404 comment not found

Notes

  • Usually limited to the comment author or moderators.
  • Keep edits short and auditable.