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_idstringOptional

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_namestringOptional

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.

labelstringOptional

In the event that a new Workflow Deployment is created, this will be the label it’s given.

release_tagslist 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.
idstring
namestring

A name that uniquely identifies this workflow deployment within its workspace

labelstring

A human-readable label for the workflow deployment

createddatetime
last_deployed_ondatetime
last_deployed_history_item_idstring

The ID of the history item associated with this Workflow Deployment’s LATEST Release Tag

input_variableslist of objects

The input variables this Workflow Deployment expects to receive values for when it is executed.

output_variableslist of objects

The output variables this Workflow Deployment produces values for when it’s executed.

status"ACTIVE" or "ARCHIVED"Optional
Allowed values: ACTIVEARCHIVED

The current status of the workflow deployment

  • ACTIVE - Active
  • ARCHIVED - Archived
environmentenumOptional
Allowed values: DEVELOPMENTSTAGINGPRODUCTION

The environment this workflow deployment is used in

  • DEVELOPMENT - Development
  • STAGING - Staging
  • PRODUCTION - Production
descriptionstringOptional

A human-readable description of the workflow deployment