---
title: "Change domain restrictions config list type and toggle it off/on"
method: POST
path: "/resources/configurations/restrictions/v1/email-domain/config"
tags: ["Domain restrictions"]
---

# Change domain restrictions config list type and toggle it off/on

`POST /resources/configurations/restrictions/v1/email-domain/config`

## Request

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

This route updates domain restrictions config, can toggle check on/off.

## Request body

- DomainRestrictionsConfigUpdateRequest
  - `active` boolean, required
  - `blockPublicDomains` boolean
  - `type` 'ALLOW' | 'BLOCK'

## Response `201`

- DomainRestrictionsConfigResponse
  - `active` boolean, required
  - `listType` 'ALLOW' | 'BLOCK', required
  - `blockPublicDomains` boolean, 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)
