> ## Documentation Index
> Fetch the complete documentation index at: https://gomodel-docs-providers-restructure.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create or update one model access override



## OpenAPI

````yaml /openapi.json put /admin/model-overrides
openapi: 3.0.0
info:
  description: >-
    High-performance AI gateway routing requests to multiple LLM providers
    (OpenAI, Anthropic, Gemini, Groq, OpenRouter, DeepSeek, Z.ai, xAI, MiniMax,
    Oracle, Ollama). Drop-in OpenAI-compatible API.
  title: GoModel API
  contact: {}
  version: '1.0'
servers:
  - url: '{base_url}'
    description: Edit the base URL to point at your GoModel deployment.
    variables:
      base_url:
        default: http://localhost:8080
        description: Your GoModel deployment URL
security: []
paths:
  /admin/model-overrides:
    put:
      tags:
        - admin
      summary: Create or update one model access override
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/admin.upsertModelOverrideRequest'
        description: Model selector and allowed user paths
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/modeloverrides.View'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/core.GatewayError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/core.GatewayError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/core.GatewayError'
        '502':
          description: Bad Gateway
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/core.GatewayError'
        '503':
          description: Service Unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/core.GatewayError'
      security:
        - BearerAuth: []
components:
  schemas:
    admin.upsertModelOverrideRequest:
      type: object
      properties:
        selector:
          type: string
        user_paths:
          type: array
          items:
            type: string
            maxLength: 1024
          maxItems: 100
      required:
        - selector
    modeloverrides.View:
      type: object
      properties:
        created_at:
          type: string
        model:
          type: string
        provider_name:
          type: string
        scope_kind:
          $ref: '#/components/schemas/modeloverrides.ScopeKind'
        selector:
          type: string
        updated_at:
          type: string
        user_paths:
          type: array
          items:
            type: string
    core.GatewayError:
      type: object
      properties:
        code:
          type: string
          nullable: true
        message:
          type: string
        param:
          type: string
          nullable: true
        provider:
          type: string
        status_code:
          type: integer
        type:
          $ref: '#/components/schemas/core.ErrorType'
    modeloverrides.ScopeKind:
      type: string
      enum:
        - global
        - model
        - provider
        - provider_model
      x-enum-varnames:
        - ModelScopeGlobal
        - ModelScopeModel
        - ModelScopeProvider
        - ModelScopeProviderModel
    core.ErrorType:
      type: string
      enum:
        - provider_error
        - rate_limit_error
        - invalid_request_error
        - authentication_error
        - not_found_error
      x-enum-varnames:
        - ErrorTypeProvider
        - ErrorTypeRateLimit
        - ErrorTypeInvalidRequest
        - ErrorTypeAuthentication
        - ErrorTypeNotFound
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````