Update a post's contact collection
Add the people who comment on a post to CRM lists.
posts:update. See Permissions.mode: add_all adds everyone to list_id. mode: keyword_rules adds someone to a rule’s list when their comment has the rule’s keyword. With keyword_case_sensitive: true a keyword matches only with the same upper and lower case, so Coffee doesn’t match coffee; with false, the default, case is ignored. enabled: false turns it off and clears its settings: mode, list_id and keyword_rules are emptied, so turning it on again needs them sent again. (Comment moderation, by contrast, keeps its rules when it’s turned off.)
List contacts (GET /contacts) gives the workspace’s lists in lists, with their ids, and Create or rename contact lists (PUT /contact-lists) makes new ones. A list from another workspace is refused with 422. The answer is the post object, with contact_collection_settings as saved.
Free plan
Contact collection is on paid plans. On Free, turning it on or changing it is refused with403, error: plan_limit_reached, limit: contacts, and nothing is saved. Turning it off works, and so does sending the settings it already has, unchanged.
Errors
Related
- List comments: the comments, with their contact.
- The post object:
contact_collection_settingson a post.
Authorizations
Body
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.