Set the AI spending caps of users and API tokens
Set the override of up to 500 users and API tokens of the organization. An override is a subject’s monthly AI spending cap, and it replaces its type’s default for that subject, higher or lower; 0 turns AI off for the subject. To remove a cap, use the DELETE request. Each entry names the subject’s type, USER or SERVICEKEY. Every subject is checked first and nothing changes if any is not a user or API token of the organization of that type. An organization can have at most 1000 overrides, and a change that would pass that is refused whole. Each entry is then changed on its own and the response reports each one; a failed entry can be sent again, and sending the same request again is safe because unchanged entries are reported as such. If the caller disconnects mid-batch, entries already started finish and the rest are not applied. Amounts are in USD cents.
Authorizations
Body
The caps to set.