Update account inference policy

http
PATCH /accounts/{account_id}/inference-policy

Update the models an account allows and denies and its default model, replacing each key sent; returns the policy. Requires account.settings.manage.

Parameters

NameInRequiredDescription
account_idpathYes

Request body

FieldTypeRequiredDescription
modelsobjectModels the account allows and denies. Every project of the account can only narrow them.
default_modelstring,nullDefault model of projects that set none. It must be allowed by the policy. Null uses the built-in default. Omit to keep the stored value.

Responses

StatusDescription
200The account inference policy after the update. Requires a signed-in account owner or admin. API keys are rejected regardless of their scopes.
400Bad request
401Unauthorized
403Requires a signed-in session as the account owner or an admin with account.settings.manage. API keys are refused whatever their scopes, so no API key scope grants access.
404Not found
422A model in models.allowed or default_model is retired (model-retired). The Problem detail names its successor; nothing is saved.
500Server error