Get a budget by ID
Gets 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.
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"
]
}
}Changes
Changed in 2 of the 62 revisions of this API.31
- ●
added the new
multi_user_cost_centerenum value to thebudget_scoperesponse property for the response status200response-property-enum-value-added
- ●
- ●
added the new
multi_user_customerenum value to thebudget_scoperesponse property for the response status200response-property-enum-value-added
- ●
added the new
userenum value to thebudget_scoperesponse property for the response status200response-property-enum-value-added
- ○
added the optional property
userto the response with the200statusresponse-optional-property-added
- ●