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

# Update a workflow



## OpenAPI

````yaml /openapi/flows.yaml put /workflows/{id}
openapi: 3.1.0
info:
  title: Connie Flows API
  version: 1.0.0
  description: >
    API for Tables (structured data), Workflows (automation pipelines), the
    Workflow Builder, triggers, jobs, and streaming state. "Flows" is the
    product name for Tables + Workflows.
servers:
  - url: https://connie.ai/api
    description: Production
security:
  - cookieAuth: []
tags:
  - name: Tables
    description: Table management, views, and configuration
  - name: Table Items
    description: Row (item) operations
  - name: Table Cells
    description: Cell-level read and write operations
  - name: Table Properties
    description: Column management
  - name: Table Bulk
    description: Bulk row operations
  - name: Table Transforms
    description: Formula, split, text-to-columns, and enrichment
  - name: Table Imports
    description: Importing data from CSV, Apollo, Pipe0, and People sources
  - name: Workflows
    description: Workflow CRUD and execution
  - name: Workflow Builder
    description: Node configuration, testing, and AI assistance
  - name: Workflow Results
    description: Workflow result table management
  - name: Triggers
    description: Workflow trigger management
  - name: Jobs
    description: Async background job management
  - name: Streaming State
    description: Streaming job state management
  - name: Saved Prompts
    description: Saved AI prompt library
  - name: Internal
    description: Internal options and formula action endpoints
paths:
  /workflows/{id}:
    put:
      tags:
        - Workflows
      summary: Update a workflow
      operationId: updateWorkflow
      parameters:
        - $ref: '#/components/parameters/workflowId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 255
                agent_id:
                  type: string
                  format: uuid
                  nullable: true
                graph:
                  type: object
                  properties:
                    nodes:
                      type: array
                    edges:
                      type: array
                    viewport:
                      type: object
                    metadata:
                      type: object
                version:
                  type: number
                body:
                  type: array
                  items:
                    type: string
                  nullable: true
                status:
                  type: string
                  enum:
                    - draft
                    - active
                    - paused
                    - archived
                is_trigger_enabled:
                  type: boolean
                parent_id:
                  type: string
                  format: uuid
                  nullable: true
      responses:
        '200':
          description: Workflow updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  workflow:
                    $ref: '#/components/schemas/Workflow'
components:
  parameters:
    workflowId:
      name: id
      in: path
      required: true
      schema:
        type: string
        format: uuid
  schemas:
    Workflow:
      type: object
      properties:
        id:
          type: string
          format: uuid
        workspace_id:
          type: string
          format: uuid
        name:
          type: string
        status:
          type: string
          enum:
            - draft
            - active
            - paused
            - archived
        access_mode:
          type: string
          enum:
            - everyone
            - creator_only
            - specific_users
        is_folder:
          type: boolean
        parent_id:
          type: string
          nullable: true
        workflow_mode:
          type: string
          enum:
            - pipeline
            - agent
          nullable: true
        is_trigger_enabled:
          type: boolean
        graph:
          type: object
          nullable: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: cookie
      name: session

````

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