provider billing POST /organizations/{org}/settings/billing/budgets
@utdk/github /organizations/{org}/settings/billing/budgets
Create a budget for an organization
Creates a new 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

Try it

Authentication
Configure credentials for GitHub v3 REST API
billing.createOrganizationBudget
POST/organizations/{org}/settings/billing/budgets
Creates a new 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.

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 `user` and `multi_user_customer` scopes, this must be `true`.

The scope of the budget for this organization. Use 'organization' for org-level budgets or 'repository' for repo-specific budgets within the organization. `user` and `multi_user_customer` scopes are only supported when `budget_product_sku` is `ai_credits` or `premium_requests`.

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.createOrganizationBudget()