provider billing PATCH /organizations/{org}/settings/billing/budgets/{budget_id}
@utdk/github /organizations/{org}/settings/billing/budgets/{budget_id}
Update a budget for an organization
Updates an existing budget for an organization. The authenticated user must be an organization admin or billing manager.
org path required
The organization name. The name is not case sensitive.
string
budget_id path required
The ID corresponding to the budget.
string

Try it

Authentication
Configure credentials for GitHub v3 REST API
billing.updateBudgetOrg
PATCH/organizations/{org}/settings/billing/budgets/{budget_id}
Updates an existing budget for an organization. The authenticated user must be an organization admin or billing manager.

Parameters

required

The organization name. The name is not case sensitive.

required

The ID corresponding to the budget.

Input

The budget amount in whole dollars. For license-based products, this represents the number of licenses.

Whether to prevent additional spending once the budget is exceeded. For budgets with `user` or `multi_user_customer` scope, this must remain `true`.

The scope of the budget

The name of the entity to apply the budget to

The type of pricing for the budget

A single product or SKU that will be covered in the budget

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import github from '@utdk/github';

await github.billing.updateBudgetOrg()