AI Credit Controls
Update AI credit controls
Changed onUpdate the organization's AI credit controls. This endpoint can be used for embedded instances.
All fields are optional, but at least one must be provided:
- Omit a field to leave it unchanged
- Send null to turn that control off (for userDefaultCredits and entityGroupDefaultCredits: unlimited by default)
- Send a non-negative number to set it
patch/v1/ai/credit-controls
Request
- Base URLhttps://blobsrus.omniapp.co/api
- URLhttps://blobsrus.omniapp.co/api/v1/ai/credit-controls
- Auth
- HTTP bearer
- or HTTP bearer
Request body
Example request
{
"downgradeCredits": 800,
"shutoffCredits": 1200,
"userDefaultCredits": 100,
"entityGroupDefaultCredits": 100
}Response
Thresholds updated. Returns the full current state.
Example response
{
"accountCreditLimit": 2000,
"creditsUsed": 450,
"downgradeCredits": 800,
"entityGroupDefaultCredits": 100,
"shutoffCredits": 1200,
"userDefaultCredits": 100
}Changes
- info
added the new optional request property
- info
added the required property
to the response with the status
- info