Update AI credit controls
Changed onUpdate the organization's AI credit controls: the downgrade and shutoff thresholds, the default per-user credit limit (userDefaultCredits), the default per-user daily credit limit (userDefaultDailyCredits, which requires per-user daily limits to be enabled), and the default per-entity-group credit limit (entityGroupDefaultCredits). All fields are optional and tri-state: omit a field to leave it unchanged, send null to turn that control off (for the defaults: unlimited by default), or send a non-negative number to set it. At least one field is required. The downgradeCredits <= shutoffCredits invariant is enforced against the merged result. Returns the full current state, the same shape as GET.
Request
- Base URLhttps://omniapp.co (the document declares no server; this is the origin it was published from)
- URLhttps://omniapp.co/api/v1/ai/credit-controls
- AuthHTTP bearer
Request body
Example request
{
"downgradeCredits": 800,
"entityGroupDefaultCredits": 100,
"shutoffCredits": 1200,
"userDefaultCredits": 100,
"userDefaultDailyCredits": 20
}Response
Thresholds updated. Returns the full current state.
Example response
{
"accountCreditLimit": 2000,
"creditsUsed": 450,
"downgradeCredits": 800,
"entityGroupDefaultCredits": 100,
"shutoffCredits": 1200,
"userDefaultCredits": 100,
"userDefaultDailyCredits": 20
}Changes
- info
added the new optional request property
- info
added the optional property
to the response with the status
- info
- info
added the new optional request property
- info
added the required property
to the response with the status
- info