Skip to content

Add REST API scripts for enterprise billing budgets#591

Merged
gm3dmo merged 1 commit into
mainfrom
gm3dmo/budget-endpoints-590
Jul 10, 2026
Merged

Add REST API scripts for enterprise billing budgets#591
gm3dmo merged 1 commit into
mainfrom
gm3dmo/budget-endpoints-590

Conversation

@gm3dmo

@gm3dmo gm3dmo commented Jul 10, 2026

Copy link
Copy Markdown
Owner

Adds curl example scripts for every endpoint on the Budgets REST API page, following the skeleton.sh convention.

Script Method Endpoint
get-all-budgets-for-an-enterprise.sh GET /settings/billing/budgets
create-a-budget.sh POST /settings/billing/budgets
get-a-budget-by-id-for-an-enterprise.sh GET /settings/billing/budgets/{id}
update-a-budget-for-an-enterprise.sh PATCH /settings/billing/budgets/{id}
delete-a-budget-for-an-enterprise.sh DELETE /settings/billing/budgets/{id}
get-user-states-for-a-multi-user-budget-for-an-enterprise.sh GET /settings/billing/budgets/{id}/user-states

Scripts taking a budget ID accept it as $1 or fall back to ${budget_id} from .gh-api-examples.conf.

Closes #590

Add curl example scripts covering all endpoints on the Budgets REST
API page, following the skeleton.sh convention:

- Get all budgets (GET)
- Create a budget (POST)
- Get a budget by ID (GET)
- Update a budget (PATCH)
- Delete a budget (DELETE)
- Get user states for a multi-user budget (GET)

Closes #590

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 05f6c276-0212-4226-baf3-6dfd77c9c2e6
@gm3dmo
gm3dmo merged commit 7b8c6e0 into main Jul 10, 2026
2 checks passed
@gm3dmo
gm3dmo deleted the gm3dmo/budget-endpoints-590 branch July 10, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Budget endpoints for the power

1 participant