---
title: "Add AI models to the restricted list"
method: POST
path: "/api/v2/projects/{projectKey}/ai-configs/model-configs/restricted"
tags: ["AI Configs"]
---

# Add AI models to the restricted list

`POST /api/v2/projects/{projectKey}/ai-configs/model-configs/restricted`

Add AI models, by key, to the restricted list. Keys are included in the response from the [List AI model configs](https://launchdarkly.com/docs/api/ai-configs/list-model-configs) endpoint.

## Path parameters

- `projectKey` string, required

## Request body

- RestrictedModelsRequest
  - `keys` string[], required

## Response `200`

Successful response

- RestrictedModelsResponse
  - `successes` string[], required
  - `errors` RestrictedModelError[], required
    - `key` string, required
    - `message` string, required
    - `code` integer, required

## Other responses

- `400` — Bad request
- `403` — Forbidden
- `404` — Not found
- `500` — Internal server error

## Changes

- **2026-02-28** `69c5c9aafe78` — 1 warning, 2 info
  - deleted the `header` request parameter `LD-API-Version`
  - api tag `AI Configs` added
  - api tag `AI Configs (beta)` removed

[Change history](https://skmtc.dev/launchdarkly/apis/launchdarkly-rest-api/changes/api/v2/projects/:projectKey/ai-configs/model-configs/restricted/post.md)

---

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