---
title: "Create IP restriction"
method: POST
path: "/resources/configurations/v1/restrictions/ip"
tags: ["IP restrictions"]
---

# Create IP restriction

`POST /resources/configurations/v1/restrictions/ip`

## Request

- Base URL: `http://localhost:8181`
- URL: `http://localhost:8181/resources/configurations/v1/restrictions/ip`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/docs/resources/configurations/v1/restrictions/ip/post.ts> (a function with typed inputs; its response is checked against the schema)

This route creates or updates ip restriction for a tenant. Send values in the POST body as objects. See the dropdowns for available values for each object param.

## Request body

- CreateOrUpdateIpRestrictionDto
  - `ip` string, required: IP or CIDR (v4 and v6 are supported)
  - `description` string
  - `strategy` 'ALLOW' | 'BLOCK', required
  - `isActive` boolean

## Response `201`

---

[API](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp.md) - [All operations](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/llms.txt) - [OpenAPI document](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/revisions/c496ae9e1c3e?raw)
