---
title: "Enable a model for a tenant"
method: PUT
path: "/tenants/{tenant_id}/models/{model_id}"
tags: ["Tenant"]
---

# Enable a model for a tenant

`PUT /tenants/{tenant_id}/models/{model_id}`

## Request

- Base URL: `https://api.your-domain.com`
- URL: `https://api.your-domain.com/tenants/{tenant_id}/models/{model_id}`
- Auth: API key in header `X-API-KEY`
- TypeScript: <https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/docs/tenants/:tenant_id/models/:model_id/put.ts> (a function with typed inputs; its response is checked against the schema)

Enable an LLM catalog model for a tenant (superadmin or parent tenant admin).

## Path parameters

- `tenant_id` integer, required
- `model_id` integer, required: ID of the LLM catalog model to enable.

## Query parameters

- `cookie_name` string, nullable

## Response `200`

Successful Response

- TenantLLM: Availability rows for tenant-enabled LLM models.
  - `created_at` string, date-time: UTC timestamp when the record was created.
  - `updated_at` string, date-time: UTC timestamp when the record was last updated.
  - `creator_user_id` integer, nullable: ID of the user who created the record, if attributable.
  - `updater_user_id` integer, nullable: ID of the user who last updated the record, if any.
  - `tenant_id` integer, required: ID of the tenant the LLM is enabled for.
  - `llm_catalog_id` integer, required: ID of the LLM catalog entry enabled for the tenant.

## Other responses

- `401`: Missing or invalid authentication.
- `403`: Superadmin or parent tenant admin required.
- `404`: Tenant or catalog model not found.
- `422`: Validation Error

---

[API](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api.md) - [All operations](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/revisions/b53e89b98c2b?raw)
