Update a budget
Updates an existing budget for an enterprise. Enterprise owners and billing managers can update budgets scoped to the enterprise, all users in the enterprise, or any organization in it. Organization administrators can update 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 update 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 update any budget in the enterprise.
Path parameters
The slug version of the enterprise name
The unique identifier of the budget
Request body
Response
Budget updated successfully
Example response
{
"budget": {
"budget_scope": "enterprise",
"budget_entity_name": "example-repository-name",
"user": "octocat",
"consumed_amount": 42.5,
"budget_amount": 100,
"prevent_further_usage": true,
"budget_product_sku": "actions_linux",
"budget_alerting": {
"will_alert": true,
"alert_recipients": [
"mona",
"lisa"
]
}
}
}