> ## 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 a plan entitlement quota

> Updates an existing plan entitlement quota with new values



## OpenAPI

````yaml specs/entitlements_api_docs.json patch /api/v1/plan-entitlement-quota/{id}
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/plan-entitlement-quota/{id}:
    patch:
      tags:
        - Plan Entitlement Quotas
      summary: Update a plan entitlement quota
      description: Updates an existing plan entitlement quota with new values
      operationId: PlanEntitlementQuotaController_update
      parameters:
        - name: x-admin-api-key
          in: header
          description: The API key to access the admin API
          required: true
          schema:
            type: string
        - name: id
          required: true
          in: path
          description: ID of the plan entitlement quota to update
          example: 123e4567-e89b-12d3-a456-426614174000
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePlanEntitlementQuotaDto'
      responses:
        '200':
          description: Successfully updated the quota
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlanEntitlementQuota'
        '400':
          description: Bad Request - Invalid input or duplicate quota
        '401':
          description: Unauthorized - Missing or invalid admin API key.
        '404':
          description: Not Found - Plan entitlement quota not found
components:
  schemas:
    UpdatePlanEntitlementQuotaDto:
      type: object
      properties:
        name:
          type: string
          description: The name of the plan entitlement quota
        entitlement:
          type: string
          description: The unique identifier of the entitlement
          example: 16d390da-222b-453f-b4fa-fd6a726309c3
        description:
          type: string
          description: The description of the plan entitlement quota
        quota:
          type: number
          description: The quota for the plan entitlement
        unit:
          type: string
          description: The unit of measurement for the quota
    PlanEntitlementQuota:
      type: object
      properties: {}

````