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

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

---

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