Workflows
Update workflow
Update workflow metadata or replace workflow definition collections.
Common updates:
- Change workflow name or description
- Update workflow definition nodes and edges
- Activate workflow by setting status to ‘active’
- Archive workflow by setting status to ‘archived’
Definition update semantics:
- Omit
definitionto update metadata only. - Omit
definition.nodesto leave nodes unchanged. - Include
definition.nodesonly when sending the complete desired node set. Nodes omitted from that array are removed. - Omit
definition.edgesto leave edges unchanged. - Include
definition.edgesonly when sending the complete desired edge set. Edges omitted from that array are removed. - Use snake_case config keys in API payloads.
Successful responses contain workflow metadata, including the new lock_version. They do not include the expanded graph. Call GET /workflows/{workflow_id}/definition after updating when you need the saved nodes and edges.
You can update the definition of an active workflow. Changes take effect immediately for new executions; running executions continue with the snapshot they started with.
PATCH
Update workflow
Previous
Retrieve workflow definitionGet the editor-oriented workflow payload for a specific workflow.
This endpoint returns everything needed to load the canvas:
- Base workflow metadata
- `definition.nodes` built from `flow_steps`
- `definition.edges` built from `flow_edges`
Response details:
- `definition.nodes[].id` is the workflow step identifier, not the database ID
- `definition.edges[].id` is the persisted edge UUID
- `definition.nodes[].data.node_type` is the canonical backend node type
- `definition.nodes[].data.config` changes shape by node type
- Config fields are returned in snake_case
- Function and call-workflow references are returned as IDs in the Platform API; the Kapso CLI can export them as slugs for local source repos
Use this endpoint when building or syncing a visual workflow editor, exporting a workflow graph, or cloning an existing workflow definition.
Next
Update workflow

