---
title: "Rotate Llm"
method: POST
path: "/tenants/{tenant_id}/llm/rotate"
tags: ["tenant-llm"]
---

# Rotate Llm

`POST /tenants/{tenant_id}/llm/rotate`

## Request

- Base URL: `https://api.b2metric.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.b2metric.com/tenants/{tenant_id}/llm/rotate`
- Auth: none declared

## Path parameters

- `tenant_id` string, uuid, required

## Headers

- `authorization` string, nullable

## Request body

- LlmRotateIn
  - `api_key` string, password, nullable

## Response `200`

Successful Response

- LlmConfigOut
  - `tenant_id` string, uuid, required
  - `mode` string, required
  - `provider` string, nullable, required
  - `model_group` string, nullable, required
  - `key_alias` string, required
  - `key_last4` string, nullable, required
  - `max_budget` string, nullable, required
  - `rpm_limit` integer, nullable, required
  - `status` string, required
  - `last_verified_at` string, date-time, nullable, required
  - `last_verify_ok` boolean, nullable, required
  - `last_error` string, nullable, required
  - `last_error_code` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/b2metric/apis/b2metric-license-api.md) - [All operations](https://skmtc.dev/b2metric/apis/b2metric-license-api/llms.txt) - [OpenAPI document](https://skmtc.dev/b2metric/apis/b2metric-license-api/revisions/5c26e11e8b53?raw)
