> ## 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

> Enable or disable automatic replies when engagement thresholds (likes, reposts, replies, views) are met.

## 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](/api-reference/posts/get) / [list](/api-reference/posts/list).

Repeat scheduling is **not** handled here; use [`repeatable` fields on create/update](/api-reference/posts/create) or [update post](/api-reference/posts/update).

Requires bearer token with the **`posts`** ability. Returns the full post object (same shape as `GET /posts/{post}`).

### Request

<ParamField path="post" type="integer" required>
  Post ID
</ParamField>

<ParamField body="enabled" type="boolean" required>
  `false` clears auto plug. `true` requires the fields below.
</ParamField>

<ParamField body="id" type="string">
  Optional rule identifier; generated if omitted when enabling.
</ParamField>

<ParamField body="name" type="string" required>
  Required when `enabled` is `true`. Label for this rule.
</ParamField>

<ParamField body="is_default" type="boolean" required>
  Required when `enabled` is `true`.
</ParamField>

<ParamField body="reply_text" type="string" required>
  Required when `enabled` is `true`. Text of the automatic reply.
</ParamField>

<ParamField body="likes" type="object" required>
  Required when `enabled` is `true`. `{ "enabled": boolean, "count": integer (min 0) }` - trigger when likes reach `count` (if `enabled`).
</ParamField>

<ParamField body="reposts" type="object" required>
  Same shape as `likes`.
</ParamField>

<ParamField body="replies" type="object" required>
  Same shape as `likes`.
</ParamField>

<ParamField body="views" type="object" required>
  Same shape as `likes`.
</ParamField>

<RequestExample>
  ```bash theme={null}
  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 }
    }'
  ```
</RequestExample>

### 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](/api-reference/posts/comment-moderation), [Contact collection](/api-reference/posts/contact-collection).
