---
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

## Changes

- **2026-08-25** `1f289eff3a26` — 4 breaking
  - the `oneOf[#/components/schemas/InvalidApiKeyError]/allOf[#/components/schemas/ErrorResponse]/errors/items/instance` response's property type/format changed from `string`/`uri` to `string`/`uri-reference` for status `401`
  - the `oneOf[#/components/schemas/MissingAuthenticationError]/allOf[#/components/schemas/ErrorResponse]/errors/items/instance` response's property type/format changed from `string`/`uri` to `string`/`uri-reference` for status `401`
  - the `oneOf[#/components/schemas/ProfileNotFoundError]/allOf[#/components/schemas/ErrorResponse]/errors/items/instance` response's property type/format changed from `string`/`uri` to `string`/`uri-reference` for status `404`
  - the `oneOf[#/components/schemas/ResourceNotFoundError]/allOf[#/components/schemas/ErrorResponse]/errors/items/instance` response's property type/format changed from `string`/`uri` to `string`/`uri-reference` for status `404`

[Change history](https://skmtc.dev/leadmagic/apis/leadmagic-api/changes/v1/batch/budgets/:id/patch.md)

---

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