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

# Set or replace the plan-level minimum commitment for a draft plan version.



## OpenAPI

````yaml https://api.meteroid.com/api-docs/openapi.json put /api/v1/plans/versions/{plan_version_id}/minimum
openapi: 3.1.0
info:
  title: meteroid
  description: ''
  license:
    name: LicenseRef-Proprietary
    identifier: LicenseRef-Proprietary
  version: 0.1.0
servers: []
security: []
tags:
  - name: Meteroid
    description: Meteroid API
  - name: Add-ons
  - name: Batch Jobs
  - name: Checkout Sessions
  - name: Connect
    description: Manage connected accounts (Express & Standard)
  - name: Coupons
  - name: Credit Notes
  - name: Customers
  - name: Entitlements
  - name: Events
  - name: Features
  - name: Invoices
  - name: Metrics
  - name: OAuth
    description: OAuth 2.0 token endpoints (public, client-credentials auth)
  - name: OAuth Apps
    description: Manage OAuth applications for Connect integrations
  - name: Plans
  - name: Product Families
  - name: Products
  - name: Subscriptions
  - name: Usage
paths:
  /api/v1/plans/versions/{plan_version_id}/minimum:
    put:
      tags:
        - Plans
      summary: >-
        Set or replace the plan-level minimum commitment for a draft plan
        version.
      operationId: set_plan_minimum
      parameters:
        - name: plan_version_id
          in: path
          description: Plan version ID
          required: true
          schema:
            $ref: '#/components/schemas/PlanVersionId'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MinimumCommitment'
        required: true
      responses:
        '200':
          description: Minimum commitment saved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MinimumCommitment'
        '400':
          description: Invalid input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestErrorResponse'
        '404':
          description: Plan version not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestErrorResponse'
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestErrorResponse'
      security:
        - bearer_auth: []
components:
  schemas:
    PlanVersionId:
      type: string
      format: MeteroidId
      examples:
        - plv_7n42DGM5Tflk9n8mt7Fhc7
    MinimumCommitment:
      type: object
      required:
        - amount
        - scope
      properties:
        amount:
          type: string
          description: Decimal string in the plan currency, e.g. "100.00".
        scope:
          $ref: '#/components/schemas/MinimumCommitmentScope'
    RestErrorResponse:
      type: object
      required:
        - code
        - message
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
    MinimumCommitmentScope:
      oneOf:
        - $ref: '#/components/schemas/AllComponentsScope'
        - $ref: '#/components/schemas/ProductsScope'
      discriminator:
        propertyName: type
        mapping:
          all_components:
            $ref: '#/components/schemas/AllComponentsScope'
          products:
            $ref: '#/components/schemas/ProductsScope'
    ErrorCode:
      type: string
      enum:
        - BAD_REQUEST
        - NOT_FOUND
        - CONFLICT
        - FORBIDDEN
        - UNAUTHORIZED
        - TOO_MANY_REQUESTS
        - INTERNAL_SERVER_ERROR
    AllComponentsScope:
      type: object
      description: Every revenue line counts toward the floor.
    ProductsScope:
      type: object
      description: >-
        Only lines for the listed products count. A product is the identity
        shared by plan

        components, overrides and ad-hoc extras, so a subscription's billed set
        is matched uniformly.
      required:
        - product_ids
      properties:
        product_ids:
          type: array
          items:
            type: string
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer

````