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

# Set usage tier credit limit

> Set or clear a tier's monthly credit cap while preserving credits already spent. Requires permission to manage usage limits.



## OpenAPI

````yaml put /organizations/{organization_id}/usage-tiers/{usage_tier_id}/credit-limit
openapi: 3.0.0
info:
  title: Public API
  version: 1.0.0
servers:
  - url: https://api.gumloop.com/api/v1
security: []
paths:
  /organizations/{organization_id}/usage-tiers/{usage_tier_id}/credit-limit:
    put:
      tags:
        - Organization
      summary: Set usage tier credit limit
      description: >-
        Set or clear a tier's monthly credit cap while preserving credits
        already spent. Requires permission to manage usage limits.
      operationId: setUsageTierCreditLimit
      parameters:
        - in: path
          name: organization_id
          required: true
          schema:
            type: string
          description: The ID of the organization.
        - in: path
          name: usage_tier_id
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - monthly_credit_limit
              properties:
                monthly_credit_limit:
                  type: integer
                  format: int64
                  minimum: 0
                  maximum: 9223372036854776000
                  nullable: true
                  description: >-
                    Per-member monthly credit cap, or null to remove the tier
                    cap.
            example:
              monthly_credit_limit: 10000
      responses:
        '200':
          description: The usage tier and its monthly credit limit.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageTierCreditLimit'
        '400':
          description: Missing or invalid monthly_credit_limit.
        '401':
          description: Missing or invalid credentials.
        '403':
          description: The caller lacks the required organization permission.
        '404':
          description: Usage tier not found in this organization.
        '429':
          description: Rate limit exceeded.
      security:
        - bearerAuth: []
components:
  schemas:
    UsageTierCreditLimit:
      type: object
      required:
        - usage_tier_id
        - name
        - is_default
        - monthly_credit_limit
      properties:
        usage_tier_id:
          type: string
          description: The usage tier ID.
        name:
          type: string
          description: The name shown in organization settings.
        is_default:
          type: boolean
          description: Whether this is the organization's default usage tier.
        monthly_credit_limit:
          type: integer
          format: int64
          nullable: true
          description: The per-member monthly cap, or null if the tier adds no cap.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A personal API key or an [OAuth 2.0](/api-reference/oauth) access token.
        Personal API keys also require the `x-auth-key` header with your user
        ID.

````