---
title: "Cap a key's spending"
method: PUT
path: "/v1/account/keys/{id}/limits"
tags: ["Account"]
---

# Cap a key's spending

`PUT /v1/account/keys/{id}/limits`

## Request

- Base URL: `http://api.huebr.net`
- URL: `http://api.huebr.net/v1/account/keys/{id}/limits`
- Auth: none declared

dailyUsd and perCallUsd; null or 0 removes a cap

## Path parameters

- `id` string, required

## Request body

- KeyLimits
  - `dailyUsd` number, double
  - `perCallUsd` number, double

## Response `200`

OK

---

[API](https://skmtc.dev/huebr/apis/huebr-api.md) · [All operations](https://skmtc.dev/huebr/apis/huebr-api/llms.txt) · [OpenAPI document](https://skmtc.dev/huebr/apis/huebr-api/revisions/8f304c9ca20d?raw)
