Edit workflow graph
campaignstack_edit_workflow_graphAtomically patch or replace one workflow graph. replace supplies the full non-anchor graph. patch starts from the current non-anchor graph, upserts/removes nodes, and replaces edges when supplied. A patched node's config is merged into the stored one: only the keys you send change, and a key sent as null is cleared. Invalid graphs are rejected before persistence; active-lead safety remains enforced by the workflow backend. Optional split-node optimization runs after the graph write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| graph | No | ||
| patch | No | ||
| workflowId | Yes | ||
| workspaceId | No | Workspace ID. Omit it when this connection reaches one workspace: a workspace key (cs_) is bound to its own, and a user key (csu_) or connected app whose person belongs to exactly one workspace defaults to that one. Required only when the person belongs to several; the error then lists them, and campaignstack_whoami reports them too. | |
| optimizeSplitNodeIds | No | Optional named split nodes to optimize after a valid graph write. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| results | No | ||
| warnings | No | ||
| workflowId | No | ||
| workspaceId | No |