Update organization details. User must be an Admin or Owner of the organization. Invalidates limit caches when usage limits are updated.
organization_id string required
The unique identifier of the organization to update (e.g., org_abc123def456).
All fields are optional. Only include fields you want to update.
name string optional
Organization name (1-255 characters).
description string optional
Organization description.
website string optional
Website URL (max 500 characters).
industry string optional
Industry or sector (max 100 characters).
company_size string optional
Company size range (max 50 characters).
logo_image string optional
Base64-encoded logo image.
image_url string optional
URL to organization image (max 500 characters).
is_active boolean optional
Whether the organization is active.
api_usage_limit number optional
API spending limit in CHF (must be >= 0). Updating this invalidates limit caches.
api_key_usage_limit number optional
Monthly spending limit for all API keys combined in CHF (must be >= 0). Updating this invalidates limit caches.
domains array optional
Email domains for automatic member access. Users with emails from these domains can join automatically.
An OrganizationResponse object with the updated organization details.
- Bash
- Python
- JavaScript
curl -X PATCH "https://api.aitronos.com/v1/organizations/org_abc123def456" \
-H "X-API-Key: $FREDDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Acme Corporation Updated",
"description": "Updated description",
"website": "https://acme-corp.com",
"api_usage_limit": 2000.0
}'