---
title: "Update Spend Limit"
method: PATCH
path: "/v2/limits/{limit_id}"
tags: ["limits"]
---

# Update Spend Limit

`PATCH /v2/limits/{limit_id}`

Update an absolute amount, percentage threshold, or enabled state.

## Path parameters

- `limit_id` string, uuid, required

## Request body

- SpendLimitUpdateRequest
  - `amount_usd` union
    - number
    - string
  - `threshold_percent` union
    - number
    - string
  - `enabled` boolean, nullable

## Response `200`

Successful Response

- SpendLimitItem — One limit with its current-period spend. API-key and membership limits use their corresponding ID. Team limits have neither; percentage alerts additionally identify their parent team limit.
  - `id` string, uuid, required
  - `api_key_id` string, uuid, nullable, required
  - `api_key_name` string, nullable, required
  - `membership_id` integer, nullable, required
  - `member_name` string, nullable, required
  - `parent_limit_id` string, uuid, nullable, required
  - `threshold_percent` string, nullable, required
  - `interval` 'week' | 'month', required
  - `amount_usd` string, required
  - `action` 'alert' | 'block', required
  - `enabled` boolean, required
  - `spend_usd` string, required
  - `period_start` string, required
  - `period_end` string, required
  - `editable` boolean, required

## Other responses

- `400` — Invalid or malformed request
- `401` — Missing or invalid credentials
- `403` — Caller may not access this resource
- `404` — Referenced entity does not exist
- `409` — Resource already exists
- `422` — Validation Error

---

[API](https://skmtc.dev/hud/apis/hud-platform.md) · [All operations](https://skmtc.dev/hud/apis/hud-platform/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hud/hud-platform/revisions/58558fc733d9/schema)
