---
title: "Replace existing allowlist with provided list of IP addresses & ranges"
method: PUT
path: "/api/v1/ip-allowlist"
tags: ["IP Allowlist"]
---

# Replace existing allowlist with provided list of IP addresses & ranges

`PUT /api/v1/ip-allowlist`

## Request

- Base URL: `https://api.getcortexapp.com`
- URL: `https://api.getcortexapp.com/api/v1/ip-allowlist`
- Auth: HTTP bearer

## Query parameters

- `force` boolean

## Request body

- IpAllowlistRequest
  - `entries` IpAllowlistEntry[], required: Allowlist entries
    - `address` string, required: IP address or range
    - `description` string: Description of an entry

## Response `200`

Successfully replaced allowlist

- IpAllowlistResponse
  - `entries` IpAllowlistEntry[], required: Allowlist entries
    - `address` string, required: IP address or range
    - `description` string: Description of an entry
  - `page` integer, required: Current page number, 0-indexed
  - `total` integer, required: Total number of results
  - `totalPages` integer, required: Total number of pages

## Other responses

- `400`: Bad Request
- `429`: The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.

## Changes

- **2026-11-03** `a7b058663c95`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cortex/apis/cortex-api/changes/api/v1/ip-allowlist/put.md)

---

[API](https://skmtc.dev/cortex/apis/cortex-api.md) - [All operations](https://skmtc.dev/cortex/apis/cortex-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cortex/apis/cortex-api/revisions/a7b058663c95?raw)
