Publish confirmed Flow
commit_publish_flowPublishes and compiles the exact saved Flow draft approved by the user after prepare_publish_flow. Requires explicitly enabled flows.publish. Pass the unchanged confirmationToken and matching idempotencyKey only after explicit approval of the displayed changes, active state and enrollmentMode/counts. Revision, definition, tenant/access and expiry are checked; conflicts require fresh preparation and renewed approval. On active Flows new entries use the published version; running instances retain their version. Inactive Flows remain inactive. include_existing creates a paginated enrollment batch atomically with publication using the prepared snapshot cutoff; inactive/suppressed contacts and any prior participants are skipped. Preview counts can change as eligibility is rechecked. Retry only with the identical token/key. This tool does not activate, deactivate, delete or manually trigger a Flow.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"confirmationToken": "<confirmationToken>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "commit_publish_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| idempotencyKey | Yes | Unique operation key; generate once for preparation and reuse unchanged for commit and retries. Use a new key after preparing a changed operation. | |
| confirmationToken | Yes | Unmodified short-lived confirmationToken returned by the matching prepare tool after showing the summary and receiving explicit user approval |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| flowId | Yes | ||
| isActive | Yes | ||
| revision | Yes | ||
| requestId | Yes | ||
| enrollmentMode | Yes | ||
| idempotentReplay | Yes | ||
| publishedVersion | Yes | ||
| enrollmentBatchId | Yes |