Update a post's auto-plug
Reply on a post automatically once it reaches a number of likes, reposts, replies or views.
posts:update. See Permissions.enabled: true, send name, reply_text and at least one threshold (likes, reposts, replies or views) that is on with a count of 1 or more. Thresholds you leave out are off, and the first one reached sends the reply, once. enabled: false turns it off, and the post’s auto_plug becomes null.
PostSyncer checks the numbers on X, Instagram, Facebook, LinkedIn, Threads, Bluesky and Mastodon, on the same schedule as post analytics, for up to 90 days after the post goes out. Auto-plug works on every plan. On Free, a post’s numbers are read and kept once a day while it is 1 to 7 days old, if the owner used PostSyncer (the app, the API or MCP) in the last 14 days; its other reads are only for its plug, and their numbers aren’t kept.
The answer is the post object, with auto_plug as saved. You can also set it when you create or update the post.
Errors
Related
- The post object:
auto_plugon a post. - Get a post: see a row’s numbers.
Authorizations
Body
With enabled: true it needs name, reply_text and at least one threshold that is on with a count of 1 or more. enabled: false turns it off; nothing else is needed.
Response
The post, with the setting saved.
A post: its text and media, when it goes out, and one row per account it goes to (platforms). Times are in the workspace's timezone, as Y-m-d H:i.
The post's parts, in order. One part is a single post; more parts make a thread on X, Threads, Bluesky and Mastodon (the other networks get the parts joined into one text, with two blank lines between them, the first comment left out). A part with is_first_comment is the first comment.
Where the post stands. DRAFT: saved, not going out. SCHEDULED: goes out at scheduled_at. PENDING_APPROVAL: waiting for someone to approve it. IN_QUEUE: published now and waiting its turn. IN_PROGRESS: being sent. PUBLISHED: out on every account. PARTIALLY_FAILED: out on some accounts, failed on others. FAILED: failed on every account. REJECTED: its approval was turned down.
DRAFT, SCHEDULED, PENDING_APPROVAL, IN_QUEUE, IN_PROGRESS, PUBLISHED, PARTIALLY_FAILED, FAILED, REJECTED Goes up by one each time the post's content is saved. Send it back on Update a post to be refused (409) instead of overwriting a change made elsewhere since you read it.
The post's comment moderation; null when it was never set. Change it with Update comment moderation.
The post's contact collection; null when it was never set. Change it with Update contact collection.
The post's workspace. It has no accounts or brand_voice here: List workspaces has those.
The reply posted when the post reaches a number of likes, reposts, replies or views; null when it's off. Change it with Update auto-plug.