---
title: "Update an AI credit limit"
method: PATCH
path: "/v1/ai-credit-limit/{id}"
tags: ["ai-credit-limit"]
---

# Update an AI credit limit

`PATCH /v1/ai-credit-limit/{id}`

## Path parameters

- `id` string, required

## Request body

- UpdateAiCreditLimit
  - `creditSoftLimit` integer — maximum number of credits included for the month
  - `overageRate` number — overage rate in cents per credit beyond the soft limit
  - `creditHardLimit` integer — hard cap on credit usage for the month; usage above this is rejected

## Response `204`

successful operation

## Other responses

- `400` — invalid data
- `401` — not authorized
- `403` — permission denied
- `404` — not found

---

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