/organizations/{org}/settings/billing/budgetsCreate a budget for an organization
Creates a budget for an organization. Use budget_scope, budget_amount, and budget_product_sku to define what the budget covers; user is required when the scope is user, and expires_at is supported only for user-scoped budgets. The authenticated user must be an organization admin or billing manager.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Organization budget settings. 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 organization 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. budget_scope must be one of organization, repository, multi_user_customer, or user; budget_type must be BundlePricing, ProductPricing, or SkuPricing, and user is required for the user scope. prevent_further_usage must be true for user and multi_user_customer scopes; expires_at must be a future date in YYYY-MM-DD format and is only supported for user scope, while alerting fields are rejected for that scope. The org path parameter must identify an organization, and the authenticated user must be an organization admin or billing manager.