Skip to main content

Endpoint

This operation will:
  • Create the version if it doesn’t exist, or patch the stored one
  • Set this version as the latest version
Every body field is optional — anything you omit keeps its stored value.
Once a version is locked, it cannot be modified.

Path Parameters

Request Body

Code Examples

This adds version v2 to the quickstart workflow: the image shape becomes an optional input, and the image is returned as workflow_output.image.
Run it with POST /v1/workflows/trigger/WF_ID/v2 and {"inputs": {"prompt": "A lighthouse on a cliff at sunset", "aspect_ratio": "9:16"}}; the finished run has workflow_output.image.

Response

Error Responses

Last modified on October 7, 2026