---
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

---

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