---
title: "Replace the allowlist of private AI endpoint hosts (admin only)"
method: PATCH
path: "/users/ai-private-endpoints"
tags: ["Users"]
---

# Replace the allowlist of private AI endpoint hosts (admin only)

`PATCH /users/ai-private-endpoints`

Providers on private or loopback addresses, such as a self-hosted Ollama, are refused unless their host appears here. Without this an ordinary user could point a provider at an internal service and use the server as a probe of its own network.

## Request body

- object
  - `hosts` string[]

## Response `200`

Allowlist updated.

## Other responses

- `403` — Not authorized.

---

[API](https://skmtc.dev/termix/apis/termix-api.md) · [All operations](https://skmtc.dev/termix/apis/termix-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/termix/termix-api/revisions/f4ef343eff1b/schema)
