Account

Update budgets

PATCH /v1/account/budget
Permission
write:defaults
Tokens
CLI user token

Change your spend limits and budget alerts. The body is merged into the current values, and `null` removes a value so its default applies. A change applies to the next model request, in running sessions too. Only a GitHub administrator can change budgets.

{
}

Request

alertsBudgetAlertsPatch

Changes merged into the budget alerts.

policyBudgetPolicyPatch

Changes merged into the spending policy.

Response

alertsBudgetAlertsrequired

Notifications only. These thresholds do not stop paid requests.

as_ofstring, date-timerequired
credit_balanceintegerrequired
credit_exhaustedbooleanrequired
developer_limitsDeveloperBudgetsrequired
per_runSessionBudgetDefaultrequired
policyBudgetPolicyrequired

Limits on actual spend, including subscription tokens, not allocations of credit. Developer keys are attribution_type:attribution_id; API keys use their stable key ID, never the secret. Unattributed and Ellipsis bot activity is exempt only from developer limits. A null developer default disables that scope while preserving overrides for later use.

windowsarray<AccountBudgetWindow>required

On this page

No Headings
Schedule a demo
For HumansFor Agents