Skip to main content
PUT
Replace the workflow with the definition in the body and mint a new version. Requires the Workflow: Full permission on the workflow.
This is a replace, not a merge. Nodes and edges absent from the body are removed from the new version — so send the whole workflow, not just the parts you changed.Fetch the current definition with Get Workflow Details first, modify it, then send it back in full.
The change is recorded as a single API-update entry in the workflow’s version history. Earlier versions are untouched and stay retrievable by version number or ID.

Path Parameters

string
required
The ID of the workflow to update

Headers

string
required
Your API authentication key

Body Parameters

string
required
Workflow name
string
Workflow description
object
Workflow nodes keyed by node ID, in the same shape as Create a Workflow. Each map key must equal the id of the node it holds.Replaces the existing set — a node absent from this map is removed from the new version.A node’s handler_class determines the shape of its process — see Node Process Types. For input_schema and output_schema, see Variable Schemas.
object
Workflow edges keyed by edge ID, in the same shape as Create a Workflow. Each map key must equal the id of the edge it holds, and from_node_id and to_node_id must name nodes present in nodes.Replaces the existing set — an edge absent from this map is removed from the new version.
string
Workflow active status. One of active or inactive.
string
Workflow validity status. One of valid or invalid.

Response

string
required
The ID of the version this update created
number
required
The version number this update created
number
Major component of the new version. null if the workflow is not semantically versioned.
number
Minor component of the new version. null if the workflow is not semantically versioned.
string
How the version was classified. One of major or minor.An API update always classifies as major, because a single call can rewrite the whole workflow.

Errors

Bad Request
The workflow definition is malformed.
Unauthorized
Missing, invalid, or expired API key.
Forbidden
No access to this workflow.
Not Found
The workflow does not exist.