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
| Field | Type | Description | Required |
|---|---|---|---|
action | string | hide, unhide, delete, spam, or unspam | ✓ |
| Action | What it does |
|---|---|
hide / unhide | Hides the comment from the public, or shows it again |
delete | Deletes it from Meta. Cannot be undone |
spam | Hides it, blocks the contact and, on a root comment, resolves the thread |
unspam | Reverts 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 .
Advertencia
If Meta does not confirm, the response carries COMMENT_META_MODERATION_FAILED with details.localStatePersisted: true: Platica already saved the moderation in the inbox but Meta did
not apply it. Retry the same call.