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

# Update quota for an entitlement

> Updates the quota limit for a specific entitlement



## OpenAPI

````yaml specs/entitlements_api_docs.json put /api/v1/sub-entitlement/quota
openapi: 3.1.0
info:
  title: Entitlement API
  version: 1.0.0
  description: API for managing entitlements and plan entitlement quotas.
servers:
  - url: https://dev-entitlements-api.iqraa.ai/api/v1
    description: Production server
security: []
tags: []
paths:
  /api/v1/sub-entitlement/quota:
    put:
      tags:
        - Subscription Entitlements
      summary: Update quota for an entitlement
      description: Updates the quota limit for a specific entitlement
      operationId: SubEntitlementController_updateQuota
      parameters:
        - name: x-admin-api-key
          in: header
          description: The API key to access the admin API
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateQuotaDto'
      responses:
        '200':
          description: Quota updated successfully
        '400':
          description: Bad Request - Invalid quota value
        '401':
          description: Unauthorized - Missing or invalid admin API key
        '404':
          description: Not Found - Entitlement or subscription not found
components:
  schemas:
    UpdateQuotaDto:
      type: object
      properties:
        subscriptionId:
          type: string
          description: The subscription ID
          example: sub_123
        entitlementCode:
          type: string
          description: The entitlement code
          example: ent_doc
        quota:
          type: number
          description: The new quota value (-1 for unlimited)
          example: 1000
          minimum: -1
      required:
        - subscriptionId
        - entitlementCode
        - quota

````