div strong 🔨 In Development — This section is still being developed and may change. Update a pricing tier. **Admin only** - Requires admin privileges. ## Path Parameters **`tier_id`** string required The unique identifier of the pricing tier to update. ## Request Body **`name`** string optional The display name of the pricing tier. **`description`** string optional A description of the pricing tier. **`discount_percentage`** number optional The discount percentage for this tier (0-100). **`is_active`** boolean optional Whether the pricing tier is active and available for use. ## Returns Returns the updated pricing tier object. ```bash cURL curl -X PATCH https://api.aitronos.com/v1/pricing-tiers/tier_enterprise \ -H "X-API-Key: $FREDDY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "discount_percentage": 20.0, "description": "Enterprise tier with enhanced discounts" }' ``` ```python Python import os import requests api_key = os.environ["FREDDY_API_KEY"] response = requests.patch( "https://api.aitronos.com/v1/pricing-tiers/tier_enterprise", headers={"X-API-Key": api_key}, json={ "discount_percentage": 20.0, "description": "Enterprise tier with enhanced discounts" } ) tier = response.json() ``` ```javascript JavaScript const apiKey = process.env.FREDDY_API_KEY; const response = await fetch( 'https://api.aitronos.com/v1/pricing-tiers/tier_enterprise', { method: 'PATCH', headers: { 'X-API-Key': apiKey, 'Content-Type': 'application/json' }, body: JSON.stringify({ discount_percentage: 20.0, description: 'Enterprise tier with enhanced discounts' }) } ); const tier = await response.json(); ``` ## Response ```json { "id": "tier_enterprise", "name": "Enterprise", "description": "Enterprise tier with enhanced discounts", "discount_percentage": 20.0, "is_active": true } ```