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, and replies in the message's thread on Slack and Discord (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 on every save through Update a post (one that only changes its labels or campaign too), its auto-plug, its contact collection or the app's composer, and when the post's content, time or accounts change. A few changes in the app leave it: its auto-repost, auto-plug, contact collection, comment moderation and labels set on their own, and unscheduling it. With client sign-off on, a change that sends a scheduled post to the client again moves it once more, so a copy read before is refused instead of putting the post back on the schedule. Send it back on Update a post: a stale content_version is 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.
Goes up by one each time what an approver reviews changes: the text, first comment and thread parts, media and their order, the accounts and their settings, the time, the repeats, the auto-plug or contact collection. Its labels, campaign and comment moderation leave it. Send it back on Approve a post or Reject a post: a stale review_version is refused (409) instead of answering about a version you didn't review.
Where the post stands with its approval, who it was sent to and who answered. null for a post that never waited for approval, and for a waiting or rejected post moved back to a draft. With client approvals on for the post's workspace, also its approval steps, when the waiting one needs an answer, and who it waits on.