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

# Update Token Limit Settings



## OpenAPI

````yaml PUT /admin/token-rate-limits/rate-limit/{token_rate_limit_id}
openapi: 3.1.0
info:
  title: Onyx API
  description: Onyx API for AI-powered enterprise search and chat
  version: Development
servers:
  - url: https://cloud.onyx.app/api
security: []
paths:
  /admin/token-rate-limits/rate-limit/{token_rate_limit_id}:
    put:
      tags:
        - public
      summary: Update Token Limit Settings
      operationId: update_token_limit_settings
      parameters:
        - name: token_rate_limit_id
          in: path
          required: true
          schema:
            type: integer
            title: Token Rate Limit Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TokenRateLimitArgs'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenRateLimitDisplay'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    TokenRateLimitArgs:
      properties:
        enabled:
          type: boolean
          title: Enabled
        token_budget:
          type: integer
          title: Token Budget
        period_hours:
          type: integer
          title: Period Hours
      type: object
      required:
        - enabled
        - token_budget
        - period_hours
      title: TokenRateLimitArgs
    TokenRateLimitDisplay:
      properties:
        token_id:
          type: integer
          title: Token Id
        enabled:
          type: boolean
          title: Enabled
        token_budget:
          type: integer
          title: Token Budget
        period_hours:
          type: integer
          title: Period Hours
      type: object
      required:
        - token_id
        - enabled
        - token_budget
        - period_hours
      title: TokenRateLimitDisplay
    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
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Authorization header with Bearer token

````