Update budget

http
PATCH /budgets/{budget_id}

Change the monthly limit of a budget, keeping its scope and this month’s usage.

Parameters

NameInRequiredDescription
budget_idpathYesBudget ID. A budget you cannot manage is masked as missing and fails with resource-not-found (404).

Request body

FieldTypeRequiredDescription
monthly_limit_creditsnumberYesNew monthly AI spending limit in credits. Usage already recorded this month is retained; if the new limit is below it, the next call in the scope is rejected. At most 8589934591.999999 credits, with at most six decimal places.

Responses

StatusDescription
200Budget updated
400Bad request
401Unauthorized
403API keys and runtime credentials are refused. A member cap cannot target the caller.
404Not found
500Server error