> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orkeia.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Enable/Disable Model

> Sets the `enabled` status of a model.

## Endpoint

`PUT https://gateway.orkeia.ai/ai-models/{id}/enable`

## Headers

Requires header `authorization:  <your_token>`.

```http theme={null}
authorization:  <your_token>
Content-Type: application/json
```

## Route Parameters

* `id` — Model ID (e.g., `MODEL_67890`)

## Request Body

```json theme={null}
{
  "enabled": true,
  "environment": {
    "company": "acme-inc",
    "sector": "support"
  }
}
```

## Response (200)

```json theme={null}
{
  "status": "OK",
  "data": {"true"}
}
```

## Error Codes

### 500 — Server Error

```json theme={null}
{
  "status": "ERROR",
  "code": "server/error",
  "data": null
}
```

### 400 — Client Error

```json theme={null}
{
  "status": "ERROR",
  "code": "client/error",
  "data": null
}
```
