Update AI credit controls
Organization Admin permissions are required for this endpoint.
Update the organization’s AI credit thresholds.
At least one field is required:
- Omit a field to leave the control unchanged
- Send
nullto turn off the specified control - Send a non-negative number to set the specified control
Authorizations
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
Body
Credit usage at which AI downgrades to a cheaper model. Omit to leave unchanged, null to turn off, or a non-negative number to set.
This value must be less than or equal to shutoffCredits. Omni checks this after your changes are applied on top of the current settings. This means that a single-field update can be rejected if it would violate that relationship.
x >= 0800
Credit usage at which AI shuts off entirely. Omit to leave unchanged, null to turn off, or a non-negative number to set.
x >= 01200
Response
Thresholds updated. Returns the full current state.

