---
title: "Put Tenant Model"
method: PUT
path: "/admin/tenants/{tenant_id}/models/{product}/{slot}"
tags: ["tenant-models"]
---

# Put Tenant Model

`PUT /admin/tenants/{tenant_id}/models/{product}/{slot}`

## 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/admin/tenants/{tenant_id}/models/{product}/{slot}`
- Auth: none declared

## Path parameters

- `tenant_id` string, uuid, required
- `product` string, required
- `slot` string, required

## Headers

- `authorization` string, nullable

## Request body

- ChoiceIn
  - `model` string, nullable
  - `reason` string, nullable

## Response `200`

Successful Response

- TenantModelsOut
  - `tenant_id` string, uuid, required
  - `mode` string, nullable, required
  - `key_sync_pending` boolean, required
  - `key_synced_at` string, date-time, nullable, required
  - `products` ProductChoicesOut[], required
    - `product` string, required
    - `edition` string, required
    - `slots` SlotChoiceOut[], required
      - `slot` string, required
      - `role_name` string, required
      - `locked` boolean, required
      - `allowed` string[], required
      - `default` string, nullable, required
      - `chosen` string, nullable, required
      - `chosen_by` string, nullable, required
      - `chosen_at` string, date-time, nullable, required
      - `reason` string, nullable, required
      - `effective` string, nullable, required
      - `fallback_reason` string, nullable, required
      - `fallback_since` string, date-time, nullable, required
  - `key_sync` string, nullable

## Other responses

- `202`: choice stored, key update pending
- `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)
