Create a new Workflow or create a new version of an existing Workflow programmatically. Use this endpoint when you want to define the full workflow graph, including nodes, edges, input variables, folder placement, release labels, and external IDs.Documentation Index
Fetch the complete documentation index at: https://docs.promptlayer.com/llms.txt
Use this file to discover all available pages before exploring further.
name; to create a new version, pass workflow_id or workflow_name.Request body for creating a new workflow or a new version of an existing workflow. Use name for a new workflow, or workflow_id/workflow_name to version an existing workflow.
Complete list of workflow nodes. At least one node must be marked is_output_node=true.
The name for a new workflow. If not provided, a name will be auto-generated.
1 - 255The ID of an existing workflow to create a new version for.
The name of an existing workflow to create a new version for.
The folder ID to place the workflow in.
A message describing the changes in this version.
A mapping of variable names to their types.
Conditional edges between nodes.
Labels to attach to this version.
Identifiers from other systems.
Workflow 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.