Get a budget by ID
Changed onGets a budget by ID. Enterprise owners and billing managers can view any budget in the enterprise, and organization administrators can view budgets scoped to organizations and repositories they administer. A custom role holder with fine-grained read access to enterprise billing can view the budget unless it is scoped to a repository; repository-scoped budgets require the organization administrator permissions described above. An installation access token for a GitHub App installed on the enterprise with read access to enterprise billing can get any budget in the enterprise.
Request
- Base URL: https://api.github.com
- URL: https://api.github.com/enterprises/{enterprise}/settings/billing/budgets/{budget_id}
- Auth: none declared
Path parameters
The slug version of the enterprise name.
The ID corresponding to the budget.
Response
Response when updating a budget
Example response
{
"budget_scope": "enterprise",
"budget_entity_name": "octocat/hello-world",
"user": "octocat",
"prevent_further_usage": true,
"budget_product_sku": "actions_linux",
"budget_alerting": {
"will_alert": true,
"alert_recipients": [
"mona",
"lisa"
]
},
"consumed_amount": 12.5
}Changes
- info
added the optional property
to the response with the status
- info
- warning
added the new
multi_user_cost_centerenum value to theresponse property for the response status
- warning