Update AI governance configuration for an organisation
PUT
/api/v3/organizations/{organisation}/ai/governance
const url = 'https://dashboard.quantcdn.io/api/v3/organizations/example/ai/governance';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"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}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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 }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”organisation
required
string
The organisation ID
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
aiEnabled
required
boolean
modelPolicy
required
string
modelList
Array<string>
mandatoryGuardrailPreset
string
mandatoryFilterPolicies
Array<string>
spendLimits
object
monthlyBudgetCents
integer
dailyBudgetCents
integer
perUserMonthlyBudgetCents
integer
perUserDailyBudgetCents
integer
warningThresholdPercent
integer
interfaceLimits
Aggregate spend caps per interface label (slack, autonomous, api-gateway, streaming, websocket). Keys are interface labels.
object
key
additional properties
object
dailyCents
integer
monthlyCents
integer
userOverrides
Per-user budget overrides keyed by userId (numeric portal id, slack-
object
key
additional properties
object
dailyCents
integer
monthlyCents
integer
unlimited
boolean
perTokenMonthlyBudgetCents
Flat monthly cap in cents applied to every API token without a named override
integer
perTokenDailyBudgetCents
Flat daily cap in cents applied to every API token without a named override
integer
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
monthlyCents
integer
unlimited
boolean
version
integer
Responses
Section titled “Responses”Governance configuration updated successfully
Media typeapplication/json
object
success
boolean
config
object
Example
{ "success": true}Validation error
Failed to update governance configuration
