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.
{
}
{
"as_of": str,
"credit_balance": int,
"credit_exhausted": bool,
}
1
import os
2
3
from ellipsis import Ellipsis
4
5
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
6
7
result = client.account.update_budget()
8
print(result)
1
import { Ellipsis } from '@ellipsis-dev/sdk';
2
3
const client = new Ellipsis({
4
apiKey: process.env.ELLIPSIS_API_TOKEN!,
5
});
6
7
const result = await client.account.updateBudget();
8
console.log(result);
1
curl -X PATCH "https://api.ellipsis.dev/v1/account/budget" \
2
-H "Authorization: Bearer $ELLIPSIS_API_TOKEN" \
3
-H "Content-Type: application/json" \
4
-d '{}'
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