v36

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-0187270483.0 KB
Workflows

Update a Workflow

Update a workflow. Updates create a new version.

The previous version remains addressable and immutable. Pending and running calls captured at the old version continue against it; new calls run against the new version.

Topology updates

To change the graph you must provide mainNodeName, nodes, AND edges together — partial topology updates are rejected. The full graph is replaced atomically.

Metadata-only updates

Omit all three fields to update only displayName, tags, or name while keeping the topology of the current version.

Reverting

To roll back, fetch the desired prior version and resubmit its mainNodeName/nodes/edges as a new update. Versions themselves are immutable — there is no "pin to version N" operation at the workflow level (use nodes[].function.versionNum to pin individual functions).

patch/v3/workflows/{workflowName}

Path parameters

workflowNamestring required

Request body

namestring

New name for the workflow (renames it). Must match ^[a-zA-Z0-9_-]{1,128}$.

displayNamestring

Human-readable display name.

tagsstring[]

Tags to categorize and organize the workflow.

mainNodeNamestring

mainNodeName, nodes, and edges must be provided together to update the DAG topology. If none are provided the topology is copied unchanged from the current version.

Response

The request has succeeded.

errorstring

Error message if the workflow update failed.