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

# Replace operator header tagging rules



## OpenAPI

````yaml /openapi.json put /admin/tagging/settings
openapi: 3.0.0
info:
  description: >-
    AI gateway routing requests to multiple LLM providers (OpenAI, Anthropic,
    Gemini, Groq, Fireworks AI, OpenRouter, DeepSeek, Z.ai, xAI, MiniMax, Xiaomi
    MiMo, OpenCode Go, Oracle, Ollama, Bailian). 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/tagging/settings:
    put:
      tags:
        - admin
      summary: Replace operator header tagging rules
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/admin.updateTaggingSettingsRequest'
        description: Operator tagging rules
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/admin.taggingSettingsResponse'
        '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'
        '503':
          description: Service Unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/core.GatewayError'
      security:
        - BearerAuth: []
components:
  schemas:
    admin.updateTaggingSettingsRequest:
      type: object
      properties:
        headers:
          type: array
          items:
            $ref: '#/components/schemas/tagging.Rule'
    admin.taggingSettingsResponse:
      type: object
      properties:
        editable:
          description: |-
            Editable reports whether operator rules can be saved (false when no
            settings storage is available).
          type: boolean
        headers:
          description: >-
            Headers is the effective rule set: config/env-managed rules
            (read-only,

            managed=true) followed by operator rules persisted in the admin
            store.
          type: array
          items:
            $ref: '#/components/schemas/tagging.Rule'
    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'
    tagging.Rule:
      type: object
      properties:
        delimiter:
          description: >-
            Delimiter splits one header value into multiple labels. Default:
            ",".
          type: string
        do_not_pass:
          description: |-
            DoNotPass strips the header before forwarding the request upstream.
            Default: false (headers are passed through as-is).
          type: boolean
        header:
          description: Header is the canonical HTTP header name to read labels from.
          type: string
        managed:
          description: >-
            Managed marks a rule declared in config/env; such rules are
            read-only in

            the dashboard. Never persisted.
          type: boolean
        prefix:
          description: >-
            Prefix is optionally trimmed from the front of each label. Trimming
            only

            affects the extracted label, never the forwarded header value.
          type: string
    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

````