# TenantModelKeyUpdateRequest

Replaces a model key's settings. The provider can't change (delete the key and add another), and the stored key is kept unless `apiKey` is given.

**Kind:** an object, used in requests.

## Fields

| Field | Type | Required | Description |
|---|---|---|---|
| `label` | `string \| null` |  | A name for the key, 1–100 characters. |
| `baseUrl` | `string \| null` |  | The endpoint to call instead of the provider's default; null or absent clears it. |
| `modelNameOverrides` | `map<string, string> \| null` |  | Map from a model's id at the provider to the name the endpoint serves it under; null or absent clears it. |
| `priority` | `integer` |  | Failover order among the tenant's keys for this provider, lower first (0–1000). |
| `isDisabled` | `boolean` |  | Whether the key is disabled. A disabled key is kept but never used. |
| `apiKey` | `string \| null` |  | A replacement key. Null or absent keeps the stored key. |

## Example

```json
{
  "label": "...",
  "baseUrl": "...",
  "modelNameOverrides": {
    "key": "..."
  },
  "priority": 0,
  "isDisabled": false,
  "apiKey": "..."
}
```

## Where it's used

- [`modelKeys.update`](https://docs.maitento.com/reference/api/model-keys.md) (`PUT /tenants/self/model-keys/by-id/{id}`)
