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

> Apply partial updates to an existing LLM configuration.



## OpenAPI

````yaml /openapi.json patch /api/llms/{llmId}
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/llms/{llmId}:
    parameters:
      - $ref: '#/components/parameters/LlmIdPath'
    patch:
      tags:
        - LLM Models
      summary: Update LLM
      description: Apply partial updates to an existing LLM configuration.
      parameters:
        - $ref: '#/components/parameters/VersionQuery'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateLlmRequest'
      responses:
        '200':
          description: Updated LLM configuration.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Llm'
components:
  parameters:
    LlmIdPath:
      name: llmId
      in: path
      required: true
      schema:
        type: string
      description: LLM identifier.
    VersionQuery:
      name: version
      in: query
      required: false
      schema:
        type: integer
        minimum: 1
      description: Specific version to retrieve or update.
  schemas:
    UpdateLlmRequest:
      type: object
      required:
        - workspaceId
      properties:
        workspaceId:
          type: integer
        general_prompt:
          type: string
          nullable: true
        begin_message:
          type: string
          nullable: true
        responsiveness:
          type: string
        model:
          type: string
        s2s_model:
          type: string
          description: Speech-to-speech model. Set either model or s2s_model, not both.
        start_speaker:
          type: string
          enum:
            - user
            - agent
        begin_after_user_silence_ms:
          type: integer
        model_temperature:
          type: number
        model_high_priority:
          type: boolean
        tool_call_strict_mode:
          type: boolean
        knowledge_base_ids:
          type: array
          items:
            type: string
        general_tools:
          type: array
          items:
            $ref: '#/components/schemas/Tool'
        states:
          type: array
          items:
            $ref: '#/components/schemas/LlmState'
        starting_state:
          type: string
        default_dynamic_variables:
          type: object
          additionalProperties:
            type: string
        mcps:
          type: array
          items:
            $ref: '#/components/schemas/McpConfig'
    Llm:
      allOf:
        - $ref: '#/components/schemas/LlmSummary'
        - type: object
          properties:
            model:
              type: string
            general_prompt:
              type: string
              nullable: true
            begin_message:
              type: string
              nullable: true
            responsiveness:
              type: string
              nullable: true
            general_tools:
              type: array
              items:
                $ref: '#/components/schemas/Tool'
            updated_at:
              type: string
              format: date-time
              nullable: true
    Tool:
      type: object
      required:
        - name
        - type
      properties:
        name:
          type: string
        description:
          type: string
        type:
          type: string
    LlmState:
      type: object
      required:
        - name
      properties:
        name:
          type: string
        state_prompt:
          type: string
        edges:
          type: array
          items:
            type: object
            properties:
              destination_state_name:
                type: string
              description:
                type: string
        tools:
          type: array
          items:
            $ref: '#/components/schemas/Tool'
    McpConfig:
      type: object
      required:
        - name
        - url
      properties:
        name:
          type: string
        url:
          type: string
          format: uri
        headers:
          type: object
          additionalProperties:
            type: string
        query_params:
          type: object
          additionalProperties:
            type: string
        timeout_ms:
          type: integer
    LlmSummary:
      type: object
      required:
        - llm_id
        - display_name
        - version
      properties:
        llm_id:
          type: string
        display_name:
          type: string
        version:
          type: integer
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Generate tokens from your profile settings at app.uponai.com.

````