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

> Add commenters to CRM lists via keyword rules or add-all mode.

## Update post contact collection

Configures **`contact_collection_settings`** so replies can be added to workspace CRM lists: either **keyword rules** (each keyword maps to a list) or **add all** (single list). List IDs must belong to the post’s workspace.

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` stores collection as disabled.
</ParamField>

<ParamField body="settings" type="object">
  Required when `enabled` is `true`.

  <Expandable title="settings fields">
    <ParamField body="mode" type="string" required>
      `keyword_rules` or `add_all`.
    </ParamField>

    <ParamField body="list_id" type="integer">
      Required when `mode` is `add_all`. CRM list id in the same workspace as the post.
    </ParamField>

    <ParamField body="keyword_rules" type="object[]">
      When using keyword mode: each item `{ "keyword": string, "list_id": integer }`; each `list_id` must exist in the workspace.
    </ParamField>

    <ParamField body="keyword_case_sensitive" type="boolean">
      Optional; defaults to false.
    </ParamField>
  </Expandable>
</ParamField>

<RequestExample>
  ```bash theme={null}
  curl -X PATCH "https://postsyncer.com/api/v1/posts/123/contact-collection" \
    -H "Authorization: Bearer YOUR_API_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{
      "enabled": true,
      "settings": {
        "mode": "keyword_rules",
        "keyword_rules": [
          { "keyword": "demo", "list_id": 10 }
        ],
        "keyword_case_sensitive": false
      }
    }'
  ```
</RequestExample>

For **add all** mode, use `"mode": "add_all"` and `"list_id": <crm_list_id>` in `settings` (no `keyword_rules`).

### Response

`200` - full post resource including `contact_collection_settings`.

`404` - post not found or not accessible.

`422` - validation error.

See also: [Auto plug](/api-reference/posts/auto-plug), [Comment moderation](/api-reference/posts/comment-moderation).
