Moderate Blog Comment
POST
/api/v1/posts/comments/{commentId}/moderate
Authorizations
SessionAuth
Session ID for authenticated requests
Type
API Key (header: X-Session-ID)
Parameters
Path Parameters
commentId*
Type
Requiredstring
Request Body
application/json
JSON "status": "string", "reason": "string"
{
}
Responses
Moderation applied
Moderate a blog comment.
Auth: session + moderator/admin.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
commentId | path | string | Yes | Comment id |
Request Body
json
{
"action": "approve"
}Response 200
json
{
"data": { "id": "com_2", "status": "approved" },
"user_context": { "authenticated": true, "user_type": "moderator" },
"meta": {}
}Response Errors
400invalid moderation action401missing session403missing moderator/admin role404comment not found
Notes
- Use this to approve, reject, or review comments depending on moderation policy.