WorkflowsWorkflow Sandboxes

Deploy Workflow

Beta
POST

Path parameters

idstringRequired
A UUID string identifying this workflow sandbox.
workflow_idstringRequired
An ID identifying the Workflow you'd like to deploy.

Request

This endpoint expects an object.
workflow_deployment_id
stringOptional

The Vellum-generated ID of the Workflow Deployment you’d like to update. Cannot specify both this and workflow_deployment_name. Leave null to create a new Workflow Deployment.

workflow_deployment_name
stringOptional

The unique name of the Workflow Deployment you’d like to either create or update. Cannot specify both this and workflow_deployment_id. If provided and matches an existing Workflow Deployment, that Workflow Deployment will be updated. Otherwise, a new Prompt Deployment will be created.

label
stringOptional
In the event that a new Workflow Deployment is created, this will be the label it's given.
release_tags
list of stringsOptional
Optionally provide the release tags that you'd like to be associated with the latest release of the created/updated Prompt Deployment.

Response

This endpoint returns an object
id
string
name
string
A name that uniquely identifies this workflow deployment within its workspace
label
string
A human-readable label for the workflow deployment
created
datetime
last_deployed_on
datetime
last_deployed_history_item_id
string
The ID of the history item associated with this Workflow Deployment's LATEST Release Tag
input_variables
list of objects
The input variables this Workflow Deployment expects to receive values for when it is executed.
output_variables
list of objects
The output variables this Workflow Deployment produces values for when it's executed.
status
enumOptional

The current status of the workflow deployment

  • ACTIVE - Active
  • ARCHIVED - Archived
Allowed values: ACTIVEARCHIVED
environment
enumOptional

The environment this workflow deployment is used in

  • DEVELOPMENT - Development
  • STAGING - Staging
  • PRODUCTION - Production
Allowed values: DEVELOPMENTSTAGINGPRODUCTION