---
title: "Enable or disable the IP allowlist"
method: PATCH
path: "/v2/{workspace_key}/ip-allowlist"
tags: ["Workspace Security"]
---

# Enable or disable the IP allowlist

`PATCH /v2/{workspace_key}/ip-allowlist`

Updates the workspace-level allowlist switch. Every listed range applies while the allowlist is enabled.

## Path parameters

- `workspace_key` string, required

## Request body

- UpdateIPAllowlistRequest
  - `enabled` boolean

## Response `200`

OK

- UpdateIPAllowlistResponse
  - `ip_allowlist` IPAllowlist, required
    - `enabled` boolean, required
    - `ranges` IPRange[], required
      - `id` string, required
      - `cidr` string, required
      - `description` string, required
      - `created_at` string, date-time, required
      - `created_by_id` string

## Changes

> 253 revisions in range; 71 not diffed.

- **2026-08-24** `addad33219df` — 1 info
  - endpoint added
- **2026-08-21** `1586760a252f` — 1 breaking
  - api path removed without deprecation
- **2026-08-21** `4fdc24e562eb` — 1 info
  - endpoint added
- **2026-08-20** `be3fe58ce389` — 1 breaking
  - api path removed without deprecation
- **2026-08-17** `f54fa34db0f4` — 1 info
  - endpoint added

[Full history](https://skmtc.dev/orq-ai/apis/orq-ai-api/changes/v2/:workspace_key/ip-allowlist/patch.md)

---

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