---
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
- TypeScript: <https://skmtc.dev/usenash/apis/nash-api/docs/v1/zone-restrictions/post.ts> (a function with typed inputs; its response is checked against the schema)

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

## Changes

- **2026-11-03** `e3713837c5c9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/usenash/apis/nash-api/changes/v1/zone-restrictions/post.md)

---

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