# Cloud Billing Budget API

The Cloud Billing Budget API stores Cloud Billing budgets, which define a budget plan and the rules to execute as spend is tracked against that plan.

- [REST Resource: v1beta1.billingAccounts.budgets](https://docs.cloud.google.com/billing/docs/reference/budget/rest#v1beta1.billingAccounts.budgets)
- [REST Resource: v1.billingAccounts.budgets](https://docs.cloud.google.com/billing/docs/reference/budget/rest#v1.billingAccounts.budgets)

## Service: billingbudgets.googleapis.com

To call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

### Discovery document

A [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery documents:

- <https://billingbudgets.googleapis.com/$discovery/rest?version=v1>
- <https://billingbudgets.googleapis.com/$discovery/rest?version=v1beta1>

### Service endpoint

A [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

- `https://billingbudgets.googleapis.com`

## REST Resource: [v1beta1.billingAccounts.budgets](https://docs.cloud.google.com/billing/docs/reference/budget/rest/v1beta1/billingAccounts.budgets)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/billing/docs/reference/budget/rest/v1beta1/billingAccounts.budgets/create` | `POST /v1beta1/{parent=billingAccounts/*}/budgets` Creates a new budget. |
| `https://docs.cloud.google.com/billing/docs/reference/budget/rest/v1beta1/billingAccounts.budgets/delete` | `DELETE /v1beta1/{name=billingAccounts/*/budgets/*}` Deletes a budget. |
| `https://docs.cloud.google.com/billing/docs/reference/budget/rest/v1beta1/billingAccounts.budgets/get` | `GET /v1beta1/{name=billingAccounts/*/budgets/*}` Returns a budget. |
| `https://docs.cloud.google.com/billing/docs/reference/budget/rest/v1beta1/billingAccounts.budgets/list` | `GET /v1beta1/{parent=billingAccounts/*}/budgets` Returns a list of budgets for a billing account. |
| `https://docs.cloud.google.com/billing/docs/reference/budget/rest/v1beta1/billingAccounts.budgets/patch` | `PATCH /v1beta1/{budget.name=billingAccounts/*/budgets/*}` Updates a budget and returns the updated budget. |

## REST Resource: [v1.billingAccounts.budgets](https://docs.cloud.google.com/billing/docs/reference/budget/rest/v1/billingAccounts.budgets)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/billing/docs/reference/budget/rest/v1/billingAccounts.budgets/create` | `POST /v1/{parent=billingAccounts/*}/budgets` Creates a new budget. |
| `https://docs.cloud.google.com/billing/docs/reference/budget/rest/v1/billingAccounts.budgets/delete` | `DELETE /v1/{name=billingAccounts/*/budgets/*}` Deletes a budget. |
| `https://docs.cloud.google.com/billing/docs/reference/budget/rest/v1/billingAccounts.budgets/get` | `GET /v1/{name=billingAccounts/*/budgets/*}` Returns a budget. |
| `https://docs.cloud.google.com/billing/docs/reference/budget/rest/v1/billingAccounts.budgets/list` | `GET /v1/{parent=billingAccounts/*}/budgets` Returns a list of budgets for a billing account. |
| `https://docs.cloud.google.com/billing/docs/reference/budget/rest/v1/billingAccounts.budgets/patch` | `PATCH /v1/{budget.name=billingAccounts/*/budgets/*}` Updates a budget and returns the updated budget. |