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

# Update Model



## OpenAPI

````yaml /openapi/openapi.yaml patch /v1/models/{model_id}
openapi: 3.1.0
info:
  title: OneInbox API
  version: 1.0.0
servers:
  - url: https://api-tokyo.oneinbox.ai
    description: Production (Tokyo ap-northeast-1)
security: []
tags:
  - name: health
  - name: integrations
  - name: llm-models
  - name: tools
  - name: knowledge-bases
  - name: voices
  - name: webhooks
  - name: agents
  - name: phone-numbers
  - name: calls
  - name: workspace
  - name: usage
  - name: audit-events
paths:
  /v1/models/{model_id}:
    patch:
      tags:
        - llm-models
      summary: Update Model
      operationId: update_model_v1_models__model_id__patch
      parameters:
        - name: model_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Model Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LLMModelUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LLMModelResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - API Key: []
components:
  schemas:
    LLMModelUpdate:
      properties:
        name:
          anyOf:
            - type: string
              maxLength: 255
              minLength: 1
            - type: 'null'
          title: Name
        provider:
          anyOf:
            - type: string
              enum:
                - openai
                - anthropic
                - groq
                - deepgram
                - shisa
                - custom
            - type: 'null'
          title: Provider
          description: >-
            Switch the model's provider. Use 'custom' for your own
            OpenAI-compatible endpoint (set custom_websocket_url). When you
            change provider, send a compatible `model` too — the new (provider,
            model) pair is validated against that provider's catalogue.
        model:
          anyOf:
            - type: string
            - type: 'null'
          title: Model
          enum:
            - gpt-4o
            - gpt-4o-mini
            - gpt-4.1
            - gpt-4.1-mini
            - gpt-4-turbo
            - gpt-5
            - gpt-5-mini
            - gpt-5-nano
            - gpt-5-pro
            - gpt-5-chat-latest
            - gpt-5.1
            - gpt-5.1-chat-latest
            - gpt-5.1-codex
            - gpt-5.1-codex-max
            - gpt-5.1-codex-mini
            - gpt-5.2
            - gpt-5.2-chat-latest
            - gpt-5.2-codex
            - gpt-5.2-pro
            - gpt-5.3-chat-latest
            - gpt-5.3-codex
            - gpt-5.4
            - gpt-5.4-mini
            - gpt-5.4-nano
            - gpt-5.4-pro
            - gpt-5.5
            - gpt-5.5-pro
            - o1
            - o1-mini
            - o3-mini
            - claude-3-5-sonnet-20241022
            - claude-3-5-haiku-20241022
            - claude-3-7-sonnet-20250219
            - claude-sonnet-4-5
            - claude-haiku-4-5
            - claude-opus-4-1
            - llama-3.3-70b-versatile
            - llama-3.1-8b-instant
            - llama-3.1-70b-versatile
            - mixtral-8x7b-32768
            - gemma2-9b-it
            - shisa-ai/shisa-v2.1-llama3.3-70b
        system_prompt:
          anyOf:
            - type: string
            - type: 'null'
          title: System Prompt
        temperature:
          anyOf:
            - type: number
              maximum: 2
              minimum: 0
            - type: 'null'
          title: Temperature
        max_tokens:
          anyOf:
            - type: integer
              maximum: 128000
              minimum: 1
            - type: 'null'
          title: Max Tokens
        tool_ids:
          anyOf:
            - items:
                type: string
                format: uuid
              type: array
            - type: 'null'
          title: Tool Ids
        knowledge_base_ids:
          anyOf:
            - items:
                type: string
                format: uuid
              type: array
            - type: 'null'
          title: Knowledge Base Ids
        remove_tool_ids:
          anyOf:
            - items:
                type: string
                format: uuid
              type: array
            - type: 'null'
          title: Remove Tool Ids
          description: Tool ids to DETACH from this LLM (counterpart to tool_ids' add).
        remove_knowledge_base_ids:
          anyOf:
            - items:
                type: string
                format: uuid
              type: array
            - type: 'null'
          title: Remove Knowledge Base Ids
          description: >-
            KB ids to DETACH from this LLM (counterpart to knowledge_base_ids'
            add).
        custom_websocket_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Custom Websocket Url
          description: >-
            Required when provider='custom': the URL of your OpenAI-compatible
            LLM endpoint (wss://, ws://, https:// or http://). 'custom' means
            you bring your own OpenAI-compatible server; this is where the
            worker connects.
        credential_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Credential Id
      type: object
      title: LLMModelUpdate
    LLMModelResponse:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        provider:
          type: string
          title: Provider
        model:
          type: string
          title: Model
        system_prompt:
          type: string
          title: System Prompt
        temperature:
          type: number
          title: Temperature
        max_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Tokens
        tool_ids:
          items:
            type: string
          type: array
          title: Tool Ids
        knowledge_base_ids:
          items:
            type: string
          type: array
          title: Knowledge Base Ids
        custom_websocket_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Custom Websocket Url
        credential_id:
          type: string
          title: Credential Id
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - name
        - provider
        - model
        - system_prompt
        - temperature
        - max_tokens
        - tool_ids
        - knowledge_base_ids
        - custom_websocket_url
        - created_at
        - updated_at
      title: LLMModelResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    API Key:
      type: http
      description: >-
        Your **API key** sent as a Bearer credential — `Authorization: Bearer
        <api_key>`, where `<api_key>` starts with `oi_sk_` (create one via `POST
        /v1/api-keys`). Although the field is labelled 'token', paste your API
        key here. A dashboard JWT is also accepted on this header for the same
        endpoints.
      scheme: bearer

````