/organizations/{org}/settings/billing/budgetsCreate a budget for an organization
Creates a new budget for an organization. Supply the budget scope, amount, pricing information, and any applicable alerting or expiration settings; the authenticated user must be an organization administrator or billing manager. Use budget_entity_name to target a repository or user when the selected scope requires a specific entity.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
Optional organization budget configuration, including scope, amount, pricing, alerting, target entity, and expiration settings.
A 400 is returned for a malformed request, a 401 when authentication is required, a 403 when the authenticated user lacks permission, a 404 when the feature is not enabled or the organization is not found, a 422 when validation fails or the endpoint has been spammed, and a 500 for an internal server error. budget_scope must be one of: organization, repository, multi_user_customer, or user, and budget_type must be BundlePricing, ProductPricing, or SkuPricing. user is required for the user scope, prevent_further_usage must be true for user and multi_user_customer scopes, and expires_at must be a future date in YYYY-MM-DD format when supplied.