Update an automation
update_automationEdit a flow: name, trigger, target accounts or the whole node graph. Fields you omit stay as they are. The graph is validated before saving. A flow can send messages to the people who trigger it, tag and update those contacts, enroll them in sequences and notify the team; steps that call external services are not available here. Editing an ACTIVE flow changes what it does from that moment on: confirm the change with the user first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| graph | No | ||
| active | No | ||
| flowId | Yes | ||
| trigger | No | What starts it: {"type":"keyword","keywords":["price"]} | {"type":"comment","keywords":[…],"scope":"any"|"next"|"existing","postIds":[…]} | {"type":"story"} | {"type":"welcome"} | {"type":"manual"}. On a comment trigger, `scope` picks the posts it watches: "any" = every post; "next" = the next post that gets PUBLISHED after this is saved (drafts and scheduled posts do not claim it; needs accountIds); "existing" = the posts in `postIds` (post URLs or native ids). Add `"oncePerContact":true` to any trigger except welcome so a person who already went through the flow never gets it again (repeating the keyword or commenting again does nothing). On a comment trigger, add `"onceScope":"post"` to make it once per person PER POST instead (commenting on another post does get it). Omitting `scope` keeps the posts it watches now. | |
| accountIds | No | ||
| idempotencyKey | No | Optional. A unique id for this action (16-128 chars: letters, digits, _ : . -). If you are unsure whether a call went through (timeout, network error), repeat it with the SAME idempotencyKey and the same arguments: you get the original result and nothing is done twice. |