New-GitHubBillingOrganizationBudget
SYNOPSIS
Create a budget for an organization
SYNTAX
__AllParameterSets
New-GitHubBillingOrganizationBudget [-Org] <string> [-BudgetAmount <long>] [-PreventFurtherUsage]
[-BudgetAlerting <Object>] [-BudgetScope <string>] [-BudgetEntityName <string>]
[-BudgetType <string>] [-BudgetProductSku <string>] [-User <string>] [-ExpiresAt <string>]
[-Body <Object>] [-Accept <string>] [-WhatIf] [-Confirm]
ALIASES
This cmdlet has the following aliases,
- Get-GHNewBillingOrganizationBudget
DESCRIPTION
The New-GitHubBillingOrganizationBudget cmdlet invokes the POST method of the /organizations/{org}/settings/billing/budgets endpoint (Create a budget for an organization)
Creates a new budget for an organization. The authenticated user must be an organization admin or billing manager.
Endpoint: POST /organizations/{org}/settings/billing/budgets API version: 2026-03-10
EXAMPLES
EXAMPLE 1
New-GitHubBillingOrganizationBudget -Org 'github'
Invokes POST /organizations/{org}/settings/billing/budgets
EXAMPLE 2
New-GitHubBillingOrganizationBudget -Org 'github' -Body @{ budget_amount = 500 }
Sends the request body from a hashtable, parameters override the keys of -Body
PARAMETERS
-Accept
The Accept header (media type) of the request Default value: application/vnd.github+json
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Body
The whole request body as a hashtable or object. Keys that are also available as parameters are overwritten by the parameter values
Type: System.Object
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-BudgetAlerting
The budget_alerting value of the request
Body property [ budget_alerting ]
Type: System.Object
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-BudgetAmount
The budget amount in whole dollars. For license-based products, this represents the number of licenses.
Body property [ budget_amount ]
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-BudgetEntityName
The entity to apply the budget to. The expected value depends on ‘budget_scope’.
- ‘repository’: The repository name, or ‘owner/repo’.
- ‘organization’, ‘multi_user_customer’, and ‘user’: Not used. For ‘user’, set the ‘user’ field instead.
Body property [ budget_entity_name ]
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-BudgetProductSku
A single product or SKU that will be covered in the budget
Body property [ budget_product_sku ]
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-BudgetScope
The scope of the budget for this organization.
- ‘organization’: Apply the budget to the organization.
- ‘repository’: Apply the budget to a specific repository in the organization.
- ‘multi_user_customer’: Apply a universal budget to all users in the organization.
- ‘user’: Apply the budget to a single user in the organization.
‘user’ and ‘multi_user_customer’ scopes are only supported when ‘budget_product_sku’ is ‘ai_credits’ or ‘premium_requests’.
Body property [ budget_scope ]
Allowed values: ‘organization’, ‘repository’, ‘multi_user_customer’, ‘user’
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-BudgetType
The type of pricing model used by the budget. Determines how ‘budget_product_sku’ is interpreted.
- ‘BundlePricing’: Covers all AI credit SKUs. Set ‘budget_product_sku’ to ‘ai_credits’.
- ‘ProductPricing’: Covers all SKUs that belong to a product. Set ‘budget_product_sku’ to a product such as ‘actions’ or ‘packages’.
- ‘SkuPricing’: Covers a single, specific SKU. Set ‘budget_product_sku’ to a SKU such as ‘actions_linux’.
Body property [ budget_type ]
Allowed values: ‘BundlePricing’
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- cf
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-ExpiresAt
The date the budget will expire in ‘YYYY-MM-DD’ format. Only dates in the future are accepted. If not provided, the budget will not expire.
Only supported for budgets with ‘budget_scope’ of ‘user’
Body property [ expires_at ]
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Org
The organization name. The name is not case sensitive.
Path parameter [ org ]
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-PreventFurtherUsage
Whether to prevent additional spending once the budget is exceeded. For ‘user’ and ‘multi_user_customer’ scopes, this must be ‘true’.
Body property [ prevent_further_usage ]
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-User
The username of the user for ‘user’ scope budgets. This field is required when ‘budget_scope’ is ‘user’.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-WhatIf
Runs the command in a mode that only reports what would happen without performing the actions.
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- wi
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
Objects with properties named like the path parameters can be piped to this function
{{ Fill in the Description }}
System.String
{{ Fill in the Description }}
OUTPUTS
The response of the GitHub API (objects
{{ Fill in the Description }}
NOTES
OperationId: billing/create-organization-budget Category: billing / budgets