Moderate comments

Moderation applies on Meta and in Platica at the same time. It works even when the workspace has a pending payment: protecting the post is never blocked.

POST https://api.platica.mx/v1/posts/{postId}/comments/{commentId}/moderation

Request body

FieldTypeDescriptionRequired
actionstringhide, unhide, delete, spam, or unspam✓
ActionWhat it does
hide / unhideHides the comment from the public, or shows it again
deleteDeletes it from Meta. Cannot be undone
spamHides it, blocks the contact and, on a root comment, resolves the thread
unspamReverts spam and reopens the thread if it had been resolved as spam
{
  "action": "hide"
}

Response

Returns the comment's moderation state. The change also arrives as comment.updated (or comment.deleted) in the webhooks .