Create a spend limit
Sets a limit for a product and period that has none. Send exactly one of amount and unlimited: true. The period’s spend is checked at once: if it is already above the new limit, the product is blocked immediately (evaluation.blocked_now). Returns 409 when a limit already exists for the product and period; update it instead.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
- Amount
- Unlimited
Send exactly one of amount and unlimited: true.
Product to limit, as returned in product by the list operation.
"inference"
Limit in USD. 0 blocks at the first cent of spend.
x >= 0100
daily is the current UTC day; monthly is the current UTC calendar month.
daily, monthly "daily"
Optional; only false is allowed together with amount.
false false
Why the limit is set or changed, kept for audit.
500"Team budget"
Response
The limit was created. evaluation says whether the change blocked the product.
The spend limit, spend and block state of one product and period.