/organizations/{org}/settings/billing/budgets/{budget_id}Update a budget for an organization
Updates an existing budget for an organization. Supply the budget fields you want to change; expiration updates are supported only for existing user-scoped budgets, and setting expires_at to 0 removes the expiration date. The authenticated user must be an organization admin or billing manager.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Budget fields to update. All fields are optional.
A 400 indicates a bad request; a 401 is returned when authentication is required; a 403 indicates insufficient permissions; a 404 is returned when the budget is not found or the feature is not enabled; a 422 indicates validation failure or that the endpoint has been spammed; a 500 indicates an internal server error. expires_at must be a future date in YYYY-MM-DD format or 0 to remove the expiration date, and date values are supported only for existing user-scoped budgets; prevent_further_usage must remain true for budgets with user or multi_user_customer scope. The org path parameter must identify an organization, the budget_id path parameter must identify a budget, and the authenticated user must be an organization admin or billing manager.