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

# Update a flow

> Set `status` to start/stop; set `definition` to change nodes/edges.



## OpenAPI

````yaml /openapi.json patch /api/public/flows/{id}
openapi: 3.1.0
info:
  title: Verbose API
  version: 1.0.0
  description: >-
    Programmatic access to the Verbose platform — contacts, lists, segments, SMS
    & voice campaigns, AI agents, messages and calls, numbers, registration,
    flows, analytics, and webhooks. All endpoints live under `/api/public` and
    authenticate with a workspace API key.
servers:
  - url: https://astrasend-mocha.vercel.app
    description: Production
security:
  - bearerAuth: []
tags:
  - name: General
    description: Key + workspace.
  - name: Contacts
    description: The people you reach.
  - name: Lists
    description: Static groups of contacts.
  - name: Segments
    description: Live, rule-based audiences.
  - name: Suppression
    description: Numbers to keep off your sends.
  - name: Campaigns
    description: SMS & voice campaigns.
  - name: Messages
    description: One-off SMS.
  - name: Calls
    description: One-off outbound voice calls.
  - name: Agents
    description: AI SMS & voice agents.
  - name: Conversations
    description: Inbox threads.
  - name: Numbers
    description: Phone numbers & pools.
  - name: Offers
    description: Destinations + conversion attribution.
  - name: Analytics
    description: Metrics & custom reports.
  - name: 10DLC
    description: US A2P brand + campaign registration.
  - name: Shortcode
    description: Short-code requests.
  - name: Flows
    description: Multi-step automations.
  - name: Webhooks
    description: Event subscriptions.
paths:
  /api/public/flows/{id}:
    parameters:
      - $ref: '#/components/parameters/Id'
    patch:
      tags:
        - Flows
      summary: Update a flow
      description: Set `status` to start/stop; set `definition` to change nodes/edges.
      operationId: updateFlow
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                description:
                  type: string
                status:
                  type: string
                  enum:
                    - draft
                    - active
                    - paused
                    - archived
                definition:
                  $ref: '#/components/schemas/FlowDefinition'
      responses:
        '200':
          $ref: '#/components/responses/Ok'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    Id:
      name: id
      in: path
      required: true
      schema:
        type: string
  schemas:
    FlowDefinition:
      type: object
      properties:
        nodes:
          type: array
          items:
            $ref: '#/components/schemas/FlowNode'
        edges:
          type: array
          items:
            $ref: '#/components/schemas/FlowEdge'
    FlowNode:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
          enum:
            - trigger
            - send_sms
            - voice
            - wait
            - condition
            - switch
            - filter
            - set_field
            - add_tag
            - add_to_list
            - add_to_segment
            - integration
            - end
        position:
          type: object
          properties:
            x:
              type: number
            'y':
              type: number
        data:
          type: object
          additionalProperties: true
    FlowEdge:
      type: object
      properties:
        id:
          type: string
        source:
          type: string
        target:
          type: string
        sourceHandle:
          type:
            - string
            - 'null'
    Error:
      type: object
      properties:
        ok:
          type: boolean
          example: false
        error:
          type: string
  responses:
    Ok:
      description: Success
      content:
        application/json:
          schema:
            type: object
            properties:
              ok:
                type: boolean
                example: true
            additionalProperties: true
    NotFound:
      description: Not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            ok: false
            error: Not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Your API key (`as_live_…`), created under Settings → API keys.

````