---
title: "Update Credit Budget"
method: PATCH
path: "/v1/batch/budgets/{id}"
tags: ["Cost Control"]
---

# Update Credit Budget

`PATCH /v1/batch/budgets/{id}`

Update max_credits, period, alert_threshold_pct, and/or alert_email.

## Path parameters

- `id` string, required

## Request body

- object
  - `max_credits` number
  - `period` string
  - `alert_threshold_pct` number
  - `alert_email` string

## Response `200`

Updated budget.

- Budget
  - `id` string
  - `scope` string
  - `scope_value` string
  - `max_credits` number
  - `period` string
  - `alert_threshold_pct` number
  - `alert_email` string

## Other responses

- `401` — Unauthorized - Authentication failed. **Common causes:** - Missing X-API-Key header - Invalid or expired API key - Malformed API key
- `404` — Not Found - The requested resource could not be found. **Common causes:** - Profile doesn't exist or is not accessible - Company not found in our database - Invalid URL or identifier

---

[API](https://skmtc.net/leadmagic/apis/leadmagic-api.md) · [All operations](https://skmtc.net/leadmagic/apis/leadmagic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/leadmagic/leadmagic-api/revisions/aa19cf9bc46a/schema)
