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

# Update Ask Feather Limits

> Update one or more Ask Feather limits in Redis (partial update; omitted
fields keep their current value). Internal-only.



## OpenAPI

````yaml /api-reference/openapi.json put /v1/ask-feather/limits
openapi: 3.1.0
info:
  title: Feather API
  description: >-
    Unified customer experience platform API. Manages identity, conversations,
    memory, agents, procedures, policies, model routing, knowledge bases,
    integrations, and runtime execution.
  version: 1.87.0
servers:
  - url: https://api-sandbox.featherhq.com
    description: Sandbox
  - url: http://localhost:8000
    description: Local dev
security: []
paths:
  /v1/ask-feather/limits:
    put:
      tags:
        - ask-feather
      summary: Update Ask Feather Limits
      description: |-
        Update one or more Ask Feather limits in Redis (partial update; omitted
        fields keep their current value). Internal-only.
      operationId: update_ask_feather_limits_v1_ask_feather_limits_put
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LimitsUpdate'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    LimitsUpdate:
      properties:
        daily_org_budget_usd:
          anyOf:
            - type: number
              minimum: 0
            - type: 'null'
          title: Daily Org Budget Usd
        daily_org_budget_alert_ratio:
          anyOf:
            - type: number
              maximum: 1
              minimum: 0
            - type: 'null'
          title: Daily Org Budget Alert Ratio
        turns_per_minute_per_org:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Turns Per Minute Per Org
        turns_per_day_per_org:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Turns Per Day Per Org
        turns_per_day_per_user:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Turns Per Day Per User
        total_tokens_limit:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          title: Total Tokens Limit
        tool_calls_limit:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          title: Tool Calls Limit
        max_iterations:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          title: Max Iterations
        history_char_budget_retry_ratio:
          anyOf:
            - type: number
              maximum: 1
              minimum: 0
            - type: 'null'
          title: History Char Budget Retry Ratio
        max_tokens:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          title: Max Tokens
        max_code_output_chars:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Max Code Output Chars
        history_char_budget:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: History Char Budget
        history_max_messages:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: History Max Messages
        web_search_max_uses:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          title: Web Search Max Uses
        max_tool_result_chars:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Max Tool Result Chars
        turn_lock_ttl_seconds:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          title: Turn Lock Ttl Seconds
        compile_wait_timeout_seconds:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Compile Wait Timeout Seconds
        compile_poll_interval_seconds:
          anyOf:
            - type: number
              exclusiveMinimum: 0
            - type: 'null'
          title: Compile Poll Interval Seconds
      type: object
      title: LimitsUpdate
      description: Partial update for Ask Feather limits — omitted fields keep their value.
    LimitsResponse:
      properties:
        daily_org_budget_usd:
          type: number
          title: Daily Org Budget Usd
        daily_org_budget_alert_ratio:
          type: number
          title: Daily Org Budget Alert Ratio
        turns_per_minute_per_org:
          type: integer
          title: Turns Per Minute Per Org
        turns_per_day_per_org:
          type: integer
          title: Turns Per Day Per Org
        turns_per_day_per_user:
          type: integer
          title: Turns Per Day Per User
        total_tokens_limit:
          type: integer
          title: Total Tokens Limit
        tool_calls_limit:
          type: integer
          title: Tool Calls Limit
        max_iterations:
          type: integer
          title: Max Iterations
        history_char_budget_retry_ratio:
          type: number
          title: History Char Budget Retry Ratio
        max_tokens:
          type: integer
          title: Max Tokens
        max_code_output_chars:
          type: integer
          title: Max Code Output Chars
        history_char_budget:
          type: integer
          title: History Char Budget
        history_max_messages:
          type: integer
          title: History Max Messages
        web_search_max_uses:
          type: integer
          title: Web Search Max Uses
        max_tool_result_chars:
          type: integer
          title: Max Tool Result Chars
        turn_lock_ttl_seconds:
          type: integer
          title: Turn Lock Ttl Seconds
        compile_wait_timeout_seconds:
          type: integer
          title: Compile Wait Timeout Seconds
        compile_poll_interval_seconds:
          type: number
          title: Compile Poll Interval Seconds
      type: object
      required:
        - daily_org_budget_usd
        - daily_org_budget_alert_ratio
        - turns_per_minute_per_org
        - turns_per_day_per_org
        - turns_per_day_per_user
        - total_tokens_limit
        - tool_calls_limit
        - max_iterations
        - history_char_budget_retry_ratio
        - max_tokens
        - max_code_output_chars
        - history_char_budget
        - history_max_messages
        - web_search_max_uses
        - max_tool_result_chars
        - turn_lock_ttl_seconds
        - compile_wait_timeout_seconds
        - compile_poll_interval_seconds
      title: LimitsResponse
      description: >-
        Current Ask Feather cost/quota limits (mirrors
        ``limits.AskFeatherLimits``).

        Read from / written to Redis via the internal ``/ask-feather/limits``
        endpoint.
    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:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````