Skip to main content
PATCH
posts
/
{post}
/
comment-moderation
curl -X PATCH "https://postsyncer.com/api/v1/posts/123/comment-moderation" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "enabled": true,
    "settings": {
      "remove_profanity": true,
      "remove_negativity": false,
      "remove_all_comments": false,
      "remove_custom_topics": false,
      "custom_topics_list": [],
      "remove_urls": false,
      "remove_emails": false,
      "remove_phones": false,
      "remove_mentions": false,
      "mentions_list": [],
      "remove_hashtags": false,
      "hashtags_list": [],
      "remove_keywords": false,
      "keywords_list": [],
      "ai_reply": false
    }
  }'

Documentation Index

Fetch the complete documentation index at: https://docs.postsyncer.com/llms.txt

Use this file to discover all available pages before exploring further.

Update post comment moderation

Sets comments_settings on a post: rules for handling incoming comments (profanity, negativity, custom topics, URLs, mentions, hashtags, keywords, AI reply). When enabled is false, settings are stored with moderation off. Requires bearer token with the posts ability. Returns the full post object (same shape as GET /posts/{post}).

Request

post
integer
required
Post ID
enabled
boolean
required
Master switch for moderation on this post.
settings
object
Required when enabled is true. All boolean flags below are required when moderation is enabled.
curl -X PATCH "https://postsyncer.com/api/v1/posts/123/comment-moderation" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "enabled": true,
    "settings": {
      "remove_profanity": true,
      "remove_negativity": false,
      "remove_all_comments": false,
      "remove_custom_topics": false,
      "custom_topics_list": [],
      "remove_urls": false,
      "remove_emails": false,
      "remove_phones": false,
      "remove_mentions": false,
      "mentions_list": [],
      "remove_hashtags": false,
      "hashtags_list": [],
      "remove_keywords": false,
      "keywords_list": [],
      "ai_reply": false
    }
  }'

Response

200 — full post resource including comments_settings. 404 — post not found or not accessible. 422 — validation error. See also: Comments API overview, Auto plug, Contact collection.