Update Comment to DM rule
update_comment_dm_ruleChange a Comment to DM rule: keywords, match, DM text, public replies, the post it watches (mediaId, or null for every post), or pause/resume it with active. Only the fields given change. Get the rule id from list_comment_dm_rules.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| match | No | contains (default) = the keyword appears as a whole word or phrase in the comment; exact = the comment is just the keyword | |
| active | No | false pauses the rule | |
| dmText | No | The DM sent to the person who commented (up to 1000 characters, links allowed). {username} becomes their @handle on Instagram, their first name on Facebook | |
| ruleId | Yes | Rule id from list_comment_dm_rules | |
| mediaId | No | Instagram or Facebook post id to watch, or null for every post of the account | |
| keywords | No | Words or phrases that trigger the DM (up to 20). Case and accents are ignored. Empty or omitted = every comment triggers it | |
| workspace | No | Workspace slug (optional) | |
| publicReplies | No | Optional public replies posted under the comment once the DM is sent, one picked at random (up to 5), e.g. "Sent! Check your DMs". {username} becomes their @handle on Instagram, their first name on Facebook |