> ## 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.

# Update Workflow

> Update an existing workflow.



## OpenAPI

````yaml put /v3/workflows/{flow_id}
openapi: 3.0.0
info:
  title: Lyzr API - Update Workflow
  version: v3
  description: Update an existing workflow using its flow ID.
servers:
  - url: https://agent-prod.studio.lyzr.ai
security: []
paths:
  /v3/workflows/{flow_id}:
    put:
      summary: Update Workflow Endpoint
      description: Update an existing workflow.
      operationId: updateWorkflow
      parameters:
        - name: flow_id
          in: path
          required: true
          description: ID of the workflow to update.
          schema:
            type: string
            example: e0ab5411-8620-41c0-acdd-bac4c35fc7c0
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - flow_name
                - flow_data
                - api_key
              properties:
                flow_name:
                  type: string
                  example: Updated Workflow Name
                flow_data:
                  type: object
                  example:
                    tasks: []
                    default_inputs: {}
                    run_name: Updated Run Name
                    edges: []
                api_key:
                  type: string
                  example: sk-default-JDJARRky2GCw0vlk8ChKglquOkbHmYdK
      responses:
        '200':
          description: Workflow updated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Workflow updated
        '401':
          description: Unauthorized
        '422':
          description: Validation Error
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````