---
title: "Replace bulk domain restriction"
method: POST
path: "/resources/configurations/restrictions/v1/email-domain/replace-bulk"
tags: ["Domain restrictions"]
---

# Replace bulk domain restriction

`POST /resources/configurations/restrictions/v1/email-domain/replace-bulk`

## Request

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

This route replaces all domains from the incoming request

## Request body

- DomainRestrictionsBulkRequestRequest
  - `type` 'ALLOW' | 'BLOCK', required
  - `domains` string[], required

## Response `201`

- DomainRestrictionsResponse[]
  - `id` string, required
  - `domain` string, required
  - `type` 'ALLOW' | 'BLOCK', required

---

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