Skip to content
Last updated

Update the model availability settings for an organization. Allows administrators to disable specific AI providers or models, and set a default model. Only fields included in the request body are updated; omitted fields remain unchanged.

PATCHhttps://api.aitronos.com/v1/organizations/{organization_id}/model-settings

Requires Admin or Owner role within the organization. Uses a "disabled list" pattern: all providers and models are available by default, and this endpoint lets you selectively disable specific ones.


Path Parameters

organization_id string required

The unique identifier of the organization (e.g., org_abc123def456).

Request Body

All fields are optional. Only include fields you want to update.

disabledProviders array optional

List of provider slugs to disable. Valid values: openai, anthropic, aitronos, google, mistral, cohere. Pass an empty array [] to re-enable all providers. When a provider is disabled, none of its models will be available to organization members. Also accepts snake_case alias disabled_providers.

disabledModels array optional

List of individual model keys to disable (e.g., ["gpt-4o-mini", "claude-3-haiku"]). Pass an empty array [] to re-enable all models. This allows fine-grained control over specific models even when their provider is enabled. Also accepts snake_case alias disabled_models.

defaultModelKey string/null optional

The default model key for the organization. Set to null to clear the default. Also accepts snake_case alias default_model_key.


Returns

An OrganizationModelSettingsResponse object containing:

  • disabled_providers -- list of provider slugs that are disabled for the organization.
  • disabled_models -- list of model keys that are disabled for the organization.
  • default_model_key -- the default model key for the organization, or null if not set.
  • updated_at -- ISO 8601 timestamp of the last update.
  • updated_by -- user ID of who last updated the settings.
cURL
curl -X PATCH "https://api.aitronos.com/v1/organizations/org_abc123def456/model-settings" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "disabledProviders": ["google", "mistral"],
    "disabledModels": ["gpt-4o-mini"],
    "defaultModelKey": "claude-sonnet-4-6"
  }'