---
title: "Create zone restriction"
method: POST
path: "/v1/zone-restrictions"
tags: ["Zones"]
---

# Create zone restriction

`POST /v1/zone-restrictions`

## Request

- Base URL: `https://api.sandbox.usenash.com`
- URL: `https://api.sandbox.usenash.com/v1/zone-restrictions`
- Auth: none declared

Create a zone restriction rule that controls delivery behavior within a specific zone, such as provider restrictions or time-based rules.

## Request body

- CreateZoneRestrictionInputSerializer: Expected payload for the create zone restriction endpoint.
  - `externalId` string, nullable: The external ID of the zone restriction.
  - `name` string, required: The name of the zone restriction.
  - `isActive` boolean, nullable: Whether the zone restriction is active.
  - `restrictionMetadata` object, nullable: The metadata of the zone restriction.

## Response `200`

OK

- ZoneRestrictionResponse: Response for zone restriction.
  - `id` string, required: The ID of the zone restriction.
  - `externalId` string, required: The external ID of the zone restriction.
  - `name` string, required: The name of the zone restriction.
  - `isActive` boolean, required: Whether the zone restriction is active.
  - `restrictionMetadata` object, nullable, required: The metadata of the zone restriction.

## Other responses

- `422`: Unprocessable Content

---

[API](https://skmtc.dev/nash/apis/nash-api.md) - [All operations](https://skmtc.dev/nash/apis/nash-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nash/apis/nash-api/revisions/e3713837c5c9?raw)
