> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lyzr.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy Version

> Points production at a version, either the newest or an older one to roll back. This is the only call that changes what production runs: execute by workflow_id, webhook triggers, scheduled and manually triggered runs, and Execute Workflow nodes that call this workflow. Needs edit access.

A workflow that has never had a version deployed keeps running its draft, so existing workflows are unaffected until you deploy a version. To roll back, deploy an older `version_id` from [List Versions](https://docs.lyzr.ai/enterprise/api/superflow/versions/list.md).


## OpenAPI

````yaml openapi/superflow.yaml PUT /workflows/{id}/live
openapi: 3.0.3
info:
  title: Lyzr SuperFlow API
  version: '1.0'
  description: >-
    SuperFlow orchestration API covering workflow CRUD, versions and deployment,
    validation, the node catalog, the execution lifecycle (run, pause, resume,
    terminate, rerun), scheduling, and human-in-the-loop approvals. Agent CRUD
    and agent inference are served by the platform API and are not part of this
    surface.
servers:
  - url: https://inference.studio.lyzr.ai/api
security:
  - ApiKeyAuth: []
tags:
  - name: workflows
    description: >-
      Create, read, update, delete, validate, lock, and share workflow
      definitions.
  - name: workflow-versions
    description: Save the draft as a version and choose which version production runs.
  - name: node-catalog
    description: The contract for every node type, used to build and validate workflows.
  - name: workflow-execution
    description: Run workflows and control the execution lifecycle.
  - name: workflow-schedules
    description: Cron-driven recurring triggers for stored workflows.
  - name: approvals
    description: Human-in-the-loop approval requests raised by running workflows.
paths:
  /workflows/{id}/live:
    put:
      tags:
        - workflow-versions
      summary: Deploy a version
      description: >-
        Points production at a version, either the newest or an older one to
        roll back. This is the only call that changes what production runs:
        execute by workflow_id, webhook triggers, scheduled and manually
        triggered runs, and Execute Workflow nodes that call this workflow.
        Needs edit access.
      operationId: setLiveVersion
      parameters:
        - name: id
          in: path
          required: true
          description: Workflow ID
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetLiveRequest'
      responses:
        '200':
          description: OK. Returns the version that is now live.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowVersionSummary'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '423':
          description: >-
            Locked. The owner has locked the workflow, so a shared editor cannot
            deploy it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SetLiveRequest:
      type: object
      required:
        - version_id
      properties:
        version_id:
          type: string
          description: The version to deploy. It can be the newest version or an older one.
    WorkflowVersionSummary:
      type: object
      properties:
        version_id:
          type: string
        number:
          type: integer
          example: 3
        message:
          type: string
          example: Add approval step
        created_by:
          type: string
        created_at:
          type: string
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        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.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.