> ## 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 an addon



## OpenAPI

````yaml specs/billing_api_docs.json patch /api/v1/addon/{id}
openapi: 3.0.1
info:
  title: Billing API
  description: Billing service for managing subscriptions, payments, and entitlements
  contact: {}
  version: '1.0'
servers:
  - url: https://dev-billing-api.iqraa.ai/api/v1
security: []
tags:
  - name: Customers
    description: Customers related endpoints
  - name: Subscriptions
    description: Subscription related endpoints
  - name: Plans
    description: Plans related endpoints
  - name: Entitlements
    description: Entitlements related endpoints
  - name: Payments
    description: Payments related endpoints
  - name: Emails
    description: Email related endpoints
paths:
  /api/v1/addon/{id}:
    patch:
      tags:
        - addon
      summary: Update an addon
      operationId: AddonController_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
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateAddonDto'
      responses:
        '200':
          description: Addon updated successfully
        '400':
          description: Bad Request - Invalid quota
        '401':
          description: Unauthorized - Missing or invalid admin API key
        '404':
          description: Addon not found
      security:
        - bearer: []
components:
  schemas:
    UpdateAddonDto:
      type: object
      properties:
        chargeId:
          type: string
          description: The ID of the charge
          example: 123e4567-e89b-12d3-a456-426614174000
        subscriptionId:
          type: string
          description: The subscription ID this addon is associated with
          example: 123e4567-e89b-12d3-a456-426614174000
        quota:
          type: number
          description: The quota amount for this addon
          example: 100
          minimum: 1
        isRenewable:
          type: boolean
          description: Whether the addon can be automatically renewed
          example: true
          default: false
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: opaque
      type: http

````