---
title: "PATCH /v2/budgets/{budget_id}"
method: PATCH
path: "/v2/budgets/{budget_id}"
tags: ["budgets"]
---

# PATCH /v2/budgets/{budget_id}

`PATCH /v2/budgets/{budget_id}`

Update a single Budget

## Path parameters

- `budget_id` string, required

## Headers

- `cloudzero-idempotency-key` string
- `cloudzero-test-key` string

## Request body

- BudgetUpdate
  - `name` string — Budget name, must be unique within a View
  - `planned_limits` BudgetPlannedLimits — Mapping of `period` to planned budget limits for the given period. Supported `period`s are: - `monthly`
    - `monthly` BudgetPlannedLimit, required — Planned limit as a mapping of `date` to `amount`, where - `date` is an timezone aware ISO Formatted string, e.g. `"2022-02-01T00:00:00+00:00"` - `amount` is a Mapping of the literal string `"amount"` to a dollar amount, e.g. `{"amount": "1000.00"}`
  - `view` WithId
    - `id` string, required
  - `alerts` BudgetAlerts — Mapping of `1-100` to `Y/N`, where - `1-100` is the percentage of the budget at which to send an alert - `Y/N` is whether or not to send the alert

## Response `200`

Successful Operation

- object
  - `budget` Budget
    - `name` string, required — Budget name, must be unique within a View
    - `planned_limits` BudgetPlannedLimits, required — Mapping of `period` to planned budget limits for the given period. Supported `period`s are: - `monthly`
      - `monthly` BudgetPlannedLimit, required — Planned limit as a mapping of `date` to `amount`, where - `date` is an timezone aware ISO Formatted string, e.g. `"2022-02-01T00:00:00+00:00"` - `amount` is a Mapping of the literal string `"amount"` to a dollar amount, e.g. `{"amount": "1000.00"}`
    - `view` WithId, required
      - `id` string, required
    - `alerts` BudgetAlerts — Mapping of `1-100` to `Y/N`, where - `1-100` is the percentage of the budget at which to send an alert - `Y/N` is whether or not to send the alert
    - `id` string, required
    - `created` string, required — String representation of an epoch (UTC timestamp)
    - `last_updated` string, required — String representation of an epoch (UTC timestamp)
    - `cost_type` 'real_cost', required — Type of charges included in the cost calculation, currently supports the following values: `real_cost`: filters your bill to only display charges directly related to consumption
    - `granularity` 'monthly', required — Supported periods, e.g. "monthly"

## Other responses

- `400` — Bad Request Error
- `403` — Forbidden

---

[API](https://skmtc.net/cloudzero/apis/cloudzero-api-v2-resources.md) · [All operations](https://skmtc.net/cloudzero/apis/cloudzero-api-v2-resources/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cloudzero/cloudzero-api-v2-resources/versions/fd805a0e75e5/schema)
