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

# Update a model

> Enable or disable an organization model, or select its inference provider.



## OpenAPI

````yaml https://api.tembo.io/public-api/openapi/public patch /v1/models/{modelName}
openapi: 3.1.0
info:
  title: Tembo Public API
  description: >-
    Manage agents, sessions, repositories, and organization resources with the
    Tembo API.
  version: 1.0.0
servers:
  - url: https://api.tembo.io
    description: Tembo API
  - url: https://{deployment-origin}/api/public-api
    description: Self-hosted Tembo
    variables:
      deployment-origin:
        default: tembo.example.com
        description: Hostname of your self-hosted Tembo deployment
security: []
paths:
  /v1/models/{modelName}:
    patch:
      tags:
        - Models
      summary: Update a model
      description: >-
        Enable or disable an organization model, or select its inference
        provider.
      operationId: updateModel
      parameters:
        - in: path
          name: modelName
          schema:
            type: string
            minLength: 1
            maxLength: 200
          required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                enabled:
                  type: boolean
                  description: Enable or disable this model for the organization.
                inferenceProvider:
                  type:
                    - string
                    - 'null'
                  enum:
                    - TemboManagedInference
                    - BYOK
                    - AWSBedrock
                    - GCPVertexAI
                    - OpenRouter
                    - null
                  description: >-
                    Select the inference provider used to run this model. Use
                    listModels to discover available provider access.
              additionalProperties: false
      responses:
        '200':
          description: Update a model
          content:
            application/json:
              schema:
                type: object
                properties:
                  name:
                    type: string
                    minLength: 1
                    maxLength: 200
                  label:
                    type: string
                  provider:
                    type: string
                  enabled:
                    type: boolean
                  available:
                    type: boolean
                  unavailableReason:
                    type:
                      - string
                      - 'null'
                  supportedInferenceProviders:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                      enum:
                        - TemboManagedInference
                        - BYOK
                        - AWSBedrock
                        - GCPVertexAI
                        - OpenRouter
                  availableInferenceProviders:
                    type: array
                    items:
                      type: string
                      enum:
                        - TemboManagedInference
                        - BYOK
                        - AWSBedrock
                        - GCPVertexAI
                        - OpenRouter
                  configuredInferenceProvider:
                    type:
                      - string
                      - 'null'
                    enum:
                      - TemboManagedInference
                      - BYOK
                      - AWSBedrock
                      - GCPVertexAI
                      - OpenRouter
                      - null
                  inferenceProvider:
                    type: string
                    enum:
                      - TemboManagedInference
                      - BYOK
                      - AWSBedrock
                      - GCPVertexAI
                      - OpenRouter
                  inferenceProviderAccess:
                    type: object
                    properties:
                      TemboManagedInference:
                        anyOf:
                          - type: object
                            properties:
                              available:
                                type: boolean
                                const: true
                              unavailableCode:
                                type: 'null'
                              unavailableReason:
                                type: 'null'
                            required:
                              - available
                              - unavailableCode
                              - unavailableReason
                            additionalProperties: false
                          - type: object
                            properties:
                              available:
                                type: boolean
                                const: false
                              unavailableCode:
                                type: string
                                enum:
                                  - plan_required
                                  - missing_credentials
                                  - unsupported_provider
                                  - chatgpt_not_connected
                                  - supergrok_not_connected
                                  - claude_subscription_not_connected
                              unavailableReason:
                                type: string
                            required:
                              - available
                              - unavailableCode
                              - unavailableReason
                            additionalProperties: false
                      BYOK:
                        anyOf:
                          - type: object
                            properties:
                              available:
                                type: boolean
                                const: true
                              unavailableCode:
                                type: 'null'
                              unavailableReason:
                                type: 'null'
                            required:
                              - available
                              - unavailableCode
                              - unavailableReason
                            additionalProperties: false
                          - type: object
                            properties:
                              available:
                                type: boolean
                                const: false
                              unavailableCode:
                                type: string
                                enum:
                                  - plan_required
                                  - missing_credentials
                                  - unsupported_provider
                                  - chatgpt_not_connected
                                  - supergrok_not_connected
                                  - claude_subscription_not_connected
                              unavailableReason:
                                type: string
                            required:
                              - available
                              - unavailableCode
                              - unavailableReason
                            additionalProperties: false
                      AWSBedrock:
                        anyOf:
                          - type: object
                            properties:
                              available:
                                type: boolean
                                const: true
                              unavailableCode:
                                type: 'null'
                              unavailableReason:
                                type: 'null'
                            required:
                              - available
                              - unavailableCode
                              - unavailableReason
                            additionalProperties: false
                          - type: object
                            properties:
                              available:
                                type: boolean
                                const: false
                              unavailableCode:
                                type: string
                                enum:
                                  - plan_required
                                  - missing_credentials
                                  - unsupported_provider
                                  - chatgpt_not_connected
                                  - supergrok_not_connected
                                  - claude_subscription_not_connected
                              unavailableReason:
                                type: string
                            required:
                              - available
                              - unavailableCode
                              - unavailableReason
                            additionalProperties: false
                      GCPVertexAI:
                        anyOf:
                          - type: object
                            properties:
                              available:
                                type: boolean
                                const: true
                              unavailableCode:
                                type: 'null'
                              unavailableReason:
                                type: 'null'
                            required:
                              - available
                              - unavailableCode
                              - unavailableReason
                            additionalProperties: false
                          - type: object
                            properties:
                              available:
                                type: boolean
                                const: false
                              unavailableCode:
                                type: string
                                enum:
                                  - plan_required
                                  - missing_credentials
                                  - unsupported_provider
                                  - chatgpt_not_connected
                                  - supergrok_not_connected
                                  - claude_subscription_not_connected
                              unavailableReason:
                                type: string
                            required:
                              - available
                              - unavailableCode
                              - unavailableReason
                            additionalProperties: false
                      OpenRouter:
                        anyOf:
                          - type: object
                            properties:
                              available:
                                type: boolean
                                const: true
                              unavailableCode:
                                type: 'null'
                              unavailableReason:
                                type: 'null'
                            required:
                              - available
                              - unavailableCode
                              - unavailableReason
                            additionalProperties: false
                          - type: object
                            properties:
                              available:
                                type: boolean
                                const: false
                              unavailableCode:
                                type: string
                                enum:
                                  - plan_required
                                  - missing_credentials
                                  - unsupported_provider
                                  - chatgpt_not_connected
                                  - supergrok_not_connected
                                  - claude_subscription_not_connected
                              unavailableReason:
                                type: string
                            required:
                              - available
                              - unavailableCode
                              - unavailableReason
                            additionalProperties: false
                    required:
                      - TemboManagedInference
                      - BYOK
                      - AWSBedrock
                      - GCPVertexAI
                      - OpenRouter
                    additionalProperties: false
                  selectedInferenceProviderAvailable:
                    type: boolean
                  selectedInferenceProviderUnavailableReason:
                    type:
                      - string
                      - 'null'
                  chatgptAvailable:
                    type: boolean
                  chatgptSupported:
                    type: boolean
                  workspaceChatgptAvailable:
                    type: boolean
                  claudeSubscriptionSupported:
                    type: boolean
                  workspaceClaudeSubscriptionAvailable:
                    type: boolean
                  supergrokAvailable:
                    type: boolean
                  agentInferenceAvailable:
                    type: boolean
                required:
                  - name
                  - label
                  - provider
                  - enabled
                  - available
                  - unavailableReason
                  - supportedInferenceProviders
                  - availableInferenceProviders
                  - configuredInferenceProvider
                  - inferenceProvider
                  - inferenceProviderAccess
                  - selectedInferenceProviderAvailable
                  - selectedInferenceProviderUnavailableReason
                  - chatgptAvailable
                  - chatgptSupported
                  - workspaceChatgptAvailable
                  - claudeSubscriptionSupported
                  - workspaceClaudeSubscriptionAvailable
                  - supergrokAvailable
                  - agentInferenceAvailable
                additionalProperties: false
        '400':
          description: Validation error, invalid cursor, or update conflict
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '403':
          description: The caller cannot apply the requested model update
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '404':
          description: Model not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '500':
          description: Model operation failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
      security:
        - apiKey: []
      x-codeSamples:
        - lang: typescript
          label: TypeScript SDK
          source: |
            import Tembo from '@tembo-io/sdk';

            const client = new Tembo();

            const model = await client.models.update('modelName', {});
        - lang: rust
          label: Rust SDK
          source: |
            use tembo_rs::*;

            let client = Tembo::from_env()?;

            let response = client
                .models()
                .update("example", ModelsUpdateBody::new())
                .send()
                .await?;
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer

````

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