---
title: "Update zone restriction"
method: PATCH
path: "/v1/zone-restrictions/{id}"
tags: ["Zones"]
---

# Update zone restriction

`PATCH /v1/zone-restrictions/{id}`

## Request

- Base URL: `https://api.sandbox.usenash.com`
- URL: `https://api.sandbox.usenash.com/v1/zone-restrictions/{id}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/usenash/apis/nash-api/docs/v1/zone-restrictions/:id/patch.ts> (a function with typed inputs; its response is checked against the schema)

Update an existing zone restriction's rules or configuration. Only provided fields are updated.

## Path parameters

- `id` string, required: The ID of the zone restriction.

## 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/:id/patch.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)
