Skip to main content
PATCH
posts
/
{post}
/
auto-plug
curl -X PATCH "https://postsyncer.com/api/v1/posts/123/auto-plug" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "enabled": true,
    "name": "Thank-you",
    "is_default": false,
    "reply_text": "Thanks for engaging!",
    "likes": { "enabled": true, "count": 10 },
    "reposts": { "enabled": false, "count": 0 },
    "replies": { "enabled": false, "count": 0 },
    "views": { "enabled": false, "count": 0 }
  }'

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 auto plug

Configures auto plug on an existing post: when enabled, replies automatically after configured engagement is reached. Disabled posts return auto_plug: null on get / list. Repeat scheduling is not handled here; use repeatable fields on create/update or update post. 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
false clears auto plug. true requires the fields below.
id
string
Optional rule identifier; generated if omitted when enabling.
name
string
required
Required when enabled is true. Label for this rule.
is_default
boolean
required
Required when enabled is true.
reply_text
string
required
Required when enabled is true. Text of the automatic reply.
likes
object
required
Required when enabled is true. { "enabled": boolean, "count": integer (min 0) } — trigger when likes reach count (if enabled).
reposts
object
required
Same shape as likes.
replies
object
required
Same shape as likes.
views
object
required
Same shape as likes.
curl -X PATCH "https://postsyncer.com/api/v1/posts/123/auto-plug" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "enabled": true,
    "name": "Thank-you",
    "is_default": false,
    "reply_text": "Thanks for engaging!",
    "likes": { "enabled": true, "count": 10 },
    "reposts": { "enabled": false, "count": 0 },
    "replies": { "enabled": false, "count": 0 },
    "views": { "enabled": false, "count": 0 }
  }'

Response

200 — full post resource including auto_plug (object or null). 404 — post not found or not in a workspace you can access. 422 — validation error. See also: Comment moderation, Contact collection.