Create a budget
Creates a new budget for an enterprise. Enterprise owners and billing managers can create budgets scoped to the enterprise, all users in the enterprise, or any organization in it. Organization administrators can create budgets for their organizations, and repository-scoped budgets require administration of the repository's owning organization. A custom role holder with fine-grained write access to enterprise billing can create budgets scoped to a single user or a cost center, including all users in a cost center, without an additional administrator role; the role requirements above still apply to the other scopes. An installation access token for a GitHub App installed on the enterprise with write access to enterprise billing can create budgets for any target in the enterprise.
Path parameters
The slug version of the enterprise name.
Request body
Response
Budget created successfully
Example response
{
"budget": {
"budget_scope": "enterprise",
"budget_entity_name": "example-repository-name",
"budget_amount": 100,
"prevent_further_usage": true,
"budget_product_sku": "actions_linux",
"budget_alerting": {
"will_alert": true,
"alert_recipients": [
"mona",
"lisa"
]
}
}
}