Update a spend limit
Replaces the value of the existing limit for the product and period. Send exactly one of amount and unlimited: true. The period’s spend is checked at once: raising the limit above the spend lifts the period’s block (evaluation.released), and lowering it below the spend blocks the product (evaluation.blocked_now). Returns 404 when no limit is set; create it instead.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Product the limit applies to, as returned in product by the list operation.
"inference"
Query Parameters
Limit period. Defaults to daily; send it explicitly.
daily is the current UTC day; monthly is the current UTC calendar month.
daily, monthly "daily"
Body
- Amount
- Unlimited
Send exactly one of amount and unlimited: true.
Limit in USD. 0 blocks at the first cent of spend.
x >= 0100
Optional; only false is allowed together with amount.
false false
Why the limit is set or changed, kept for audit.
500"Raised for the product launch"
Response
The limit was updated. evaluation says whether the change lifted or started a block.
The spend limit, spend and block state of one product and period.