Skip to content

Update AI governance configuration for an organisation

PUT
/api/v3/organizations/{organisation}/ai/governance
curl --request PUT \
--url https://dashboard.quantcdn.io/api/v3/organizations/example/ai/governance \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "aiEnabled": true, "modelPolicy": "unrestricted", "modelList": [ "example" ], "mandatoryGuardrailPreset": "official", "mandatoryFilterPolicies": [ "example" ], "spendLimits": { "monthlyBudgetCents": 1, "dailyBudgetCents": 1, "perUserMonthlyBudgetCents": 1, "perUserDailyBudgetCents": 1, "warningThresholdPercent": 1, "interfaceLimits": { "additionalProperty": { "dailyCents": 1, "monthlyCents": 1 } }, "userOverrides": { "additionalProperty": { "dailyCents": 1, "monthlyCents": 1, "unlimited": true } }, "perTokenMonthlyBudgetCents": 1, "perTokenDailyBudgetCents": 1, "tokenOverrides": { "additionalProperty": { "dailyCents": 1, "monthlyCents": 1, "unlimited": true } } }, "version": 1 }'
organisation
required
string

The organisation ID

Media typeapplication/json
object
aiEnabled
required
boolean
modelPolicy
required
string
Allowed values: unrestricted allowlist blocklist
modelList
Array<string>
mandatoryGuardrailPreset
string
nullable
Allowed values: official official-sensitive protected
mandatoryFilterPolicies
Array<string>
spendLimits
object
monthlyBudgetCents
integer
nullable
dailyBudgetCents
integer
nullable
perUserMonthlyBudgetCents
integer
nullable
perUserDailyBudgetCents
integer
nullable
warningThresholdPercent
integer
nullable
interfaceLimits

Aggregate spend caps per interface label (slack, autonomous, api-gateway, streaming, websocket). Keys are interface labels.

object
key
additional properties
object
dailyCents
integer
nullable
monthlyCents
integer
nullable
userOverrides

Per-user budget overrides keyed by userId (numeric portal id, slack-, or system:code-agent). Replaces the flat per-user budget for that user; unlimited=true exempts them.

object
key
additional properties
object
dailyCents
integer
nullable
monthlyCents
integer
nullable
unlimited
boolean
nullable
perTokenMonthlyBudgetCents

Flat monthly cap in cents applied to every API token without a named override

integer
nullable
perTokenDailyBudgetCents

Flat daily cap in cents applied to every API token without a named override

integer
nullable
tokenOverrides

Per-token budget overrides keyed by API token id. Replaces the flat per-token budget for that token; unlimited=true exempts it.

object
key
additional properties
object
dailyCents
integer
nullable
monthlyCents
integer
nullable
unlimited
boolean
nullable
version
integer

Governance configuration updated successfully

Media typeapplication/json
object
success
boolean
config
object
Example
{
"success": true
}

Validation error

Failed to update governance configuration