Update Workflow (PATCH)
Partially update a Workflow by creating a new version from an existing base version. Use this endpoint when you want to change only selected nodes or version metadata without resending the complete workflow graph.Documentation Index
Fetch the complete documentation index at: https://promptlayer-add-demo-projects.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Behavior Notes
- If
base_versionis omitted, PromptLayer patches from the latest version. nodesare merged by name: unmentioned nodes are preserved, object values add or update nodes, andnullremoves a node.- Node
configurationis deep-merged, whiledependencies,required_input_variables, andedgesare replaced when provided. release_labelsare moved or attached to the newly created version.
Related
Authorizations
Path Parameters
The ID or name of the workflow to update.
Body
Request body for partially updating a workflow. The server fetches base_version (latest if omitted), merges node updates, and creates a new version.
The version number to base changes on. Defaults to the latest version.
A message describing the changes.
Node updates keyed by node name. Provide an object to add/update a node, or null to remove a node. Node configuration is deep-merged; dependencies are replaced.
If provided, replaces the input variables entirely.
If provided, replaces edges entirely. If omitted, existing edges are copied except edges that reference removed nodes.
Labels to move or attach to the newly created workflow version.
Response
Workflow version created successfully
Response after creating or patching a workflow.
Indicates if the request was successful.
The ID of the workflow.
The name of the workflow.
The ID of the created workflow version.
The version number.
External ID mappings for the workflow.
The base version this was created from (PATCH only).
Labels attached to this version.
Summary of nodes in the workflow.
Required input variables for the workflow.

