Update workflow
update_workflowOverwrite a workflow's saved draft with complete name, node, and edge lists. Uses updatedAt to detect concurrent edits, returning a conflict without changes so you can re-read and retry; deployed versions stay untouched.
Instructions
Replace a workflow's saved draft: any of name, nodes and edges you pass overwrite the stored ones whole (send the complete node and edge lists, not a patch). Requires the updatedAt from your last get_workflow or create_workflow; if someone edited it since, this returns conflict and changes nothing, so re-read and retry. Does not touch what is deployed. Returns the saved workflow with its new updatedAt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name. Omit to keep it. | |
| edges | No | The complete new edge list. Omit to keep the current edges. | |
| nodes | No | The complete new node list. Omit to keep the current nodes. | |
| updatedAt | Yes | The workflow's `updatedAt` exactly as last returned to you. | |
| workflowId | Yes | The workflow's id, from list_workflows or create_workflow. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| edges | Yes | ||
| nodes | Yes | ||
| status | Yes | ||
| ownerId | Yes | ||
| settings | Yes | ||
| createdAt | Yes | ||
| updatedAt | Yes | ||
| authoredVia | No | ||
| authoredViaClient | No | ||
| deployedWorkerUrl | No |