# Withdraw or restore a model

Source: https://immiscible.fly.dev/docs/api/post-v1-admin-availability

`POST /v1/admin/availability`

Take a model out of routing for this workspace, with a reason and a documented fallback, or put it back (`status: "available"`). Recorded in the ledger.

## Authentication

Workspace key, admin scope. A gateway key issued with the `admin` scope, sent as `Authorization: Bearer`. An inference-scoped key gets `403` here.

## Request

curl:

```bash
curl -X POST "https://immiscible.fly.dev/v1/admin/availability" \
  -H "authorization: Bearer $IMMISCIBLE_ADMIN_KEY" \
  -H "content-type: application/json" \
  -d '{
    "modelId": "openai/gpt-5.5",
    "status": "disabled",
    "reason": "vendor incident",
    "documentedFallback": "anthropic/claude-sonnet-5"
  }'
```

Node:

```ts
const res = await fetch('https://immiscible.fly.dev/v1/admin/availability', {
  method: 'POST',
  headers: {
    authorization: `Bearer ${process.env.IMMISCIBLE_ADMIN_KEY}`,
    'content-type': 'application/json',
  },
  body: JSON.stringify({
    modelId: 'openai/gpt-5.5',
    status: 'disabled',
    reason: 'vendor incident',
    documentedFallback: 'anthropic/claude-sonnet-5',
  }),
});
const data = await res.json();
console.log(res.status, data);
```

Python:

```python
import os
import requests

res = requests.post(
    "https://immiscible.fly.dev/v1/admin/availability",
    headers={
        "authorization": f"Bearer {os.environ['IMMISCIBLE_ADMIN_KEY']}",
        "content-type": "application/json",
    },
    json={
        "modelId": "openai/gpt-5.5",
        "status": "disabled",
        "reason": "vendor incident",
        "documentedFallback": "anthropic/claude-sonnet-5",
    },
)
print(res.status_code, res.json())
```
