Skip to main content
POST
Save a version
A workflow has two graphs. The draft (the test graph) is what you save with Update Workflow and what the Studio canvas runs. A version is an immutable snapshot of the draft, and the live version is the one production runs. This endpoint saves the current draft as the next version. To make it the live version, call Deploy Version.

Authorizations

x-api-key
string
header
required

Lyzr API key. Studio session keys (agk_, ags_) and durable sk- keys are accepted. Required on every endpoint except GET /node-types and a webhook-triggered execute that carries X-Webhook-Secret.

Path Parameters

id
string
required

Workflow ID

Body

application/json
message
string

Optional note describing the version.

Example:

"Add approval step"

Response

Created. Returns the new version.

version_id
string
number
integer
Example:

3

message
string
Example:

"Add approval step"

created_by
string
created_at
string