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

# Update conversation flow

> Apply partial updates to a conversation flow.



## OpenAPI

````yaml /openapi.json patch /api/conversation-flows/{conversationFlowId}
openapi: 3.1.0
info:
  title: UponAI Platform API
  version: '2026-04-20'
  description: >-
    Programmatic control plane for configuring UponAI agents, LLM
    configurations, conversation flows, knowledge bases, calls, chats, voices,
    and test tooling. All endpoints require a bearer token obtained from your
    profile settings.
servers:
  - url: https://api.upon-ai.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Calls
    description: Initiate and manage UponAI powered voice and web calls.
  - name: Agents
    description: Configure agents that power calls and web sessions.
  - name: LLM Models
    description: Manage reusable large language model configurations for agents.
  - name: Chat Agents
    description: Configure agents for browser and messaging chat sessions.
  - name: Chats
    description: Start and manage live chat sessions.
  - name: Conversation Flows
    description: Build and maintain reusable dialog graphs for agents.
  - name: Knowledge Bases
    description: Store and curate grounded knowledge sources.
  - name: Voices
    description: Discover, search, add, and clone speech synthesis voices.
  - name: Test Case Definitions
    description: Define simulation test cases for response engines.
  - name: Test Runs
    description: Retrieve results for individual and batch test runs.
  - name: Account
    description: Account level utilities and limits.
  - name: Phone Numbers
    description: List and assign phone numbers to agents.
paths:
  /api/conversation-flows/{conversationFlowId}:
    parameters:
      - $ref: '#/components/parameters/ConversationFlowIdPath'
    patch:
      tags:
        - Conversation Flows
      summary: Update conversation flow
      description: Apply partial updates to a conversation flow.
      parameters:
        - $ref: '#/components/parameters/VersionQuery'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateConversationFlowRequest'
      responses:
        '200':
          description: Updated conversation flow.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationFlow'
components:
  parameters:
    ConversationFlowIdPath:
      name: conversationFlowId
      in: path
      required: true
      schema:
        type: string
      description: Conversation flow identifier.
    VersionQuery:
      name: version
      in: query
      required: false
      schema:
        type: integer
        minimum: 1
      description: Specific version to retrieve or update.
  schemas:
    UpdateConversationFlowRequest:
      type: object
      required:
        - workspaceId
      properties:
        workspaceId:
          type: integer
        global_prompt:
          type: string
        model_choice:
          $ref: '#/components/schemas/ModelChoice'
        nodes:
          type: array
          items:
            $ref: '#/components/schemas/ConversationNode'
    ConversationFlow:
      allOf:
        - $ref: '#/components/schemas/ConversationFlowSummary'
        - type: object
          properties:
            workspaceId:
              type: integer
              nullable: true
            global_prompt:
              type: string
              nullable: true
            model_choice:
              $ref: '#/components/schemas/ModelChoice'
            nodes:
              type: array
              items:
                $ref: '#/components/schemas/ConversationNode'
    ModelChoice:
      type: object
      required:
        - type
      properties:
        type:
          type: string
        model:
          type: string
    ConversationNode:
      type: object
      required:
        - id
        - type
      properties:
        id:
          type: string
        type:
          type: string
        instruction:
          $ref: '#/components/schemas/Instruction'
        edges:
          type: array
          items:
            $ref: '#/components/schemas/ConversationEdge'
    ConversationFlowSummary:
      type: object
      required:
        - conversation_flow_id
        - version
      properties:
        conversation_flow_id:
          type: string
        version:
          type: integer
        start_speaker:
          type: string
          nullable: true
    Instruction:
      type: object
      required:
        - type
      properties:
        type:
          type: string
        text:
          type: string
    ConversationEdge:
      type: object
      required:
        - id
        - transition_condition
        - destination_node_id
      properties:
        id:
          type: string
        transition_condition:
          type: object
          required:
            - type
          properties:
            type:
              type: string
            prompt:
              type: string
        destination_node_id:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Generate tokens from your profile settings at app.uponai.com.

````