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
> [!NOTE] > This endpoint is in public preview and is subject to change. 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
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

billing.updateBudgetOrg
PATCH/organizations/{org}/settings/billing/budgets/{budget_id}
> [!NOTE] > This endpoint is in public preview and is subject to change. 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

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

Enter a gateway URL 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()