PATCH
/
v1
/
zones
/
{id}
curl --request PATCH \
  --url https://api.sandbox.usenash.com/v1/zones/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Zone 1",
  "coverageAreaId": "<string>",
  "storeLocationIds": [
    "<string>"
  ],
  "tags": "['\''service:rapid'\'', '\''service:express'\'', '\''franchise_location'\'']"
}'
{
  "id": "zone_01234567890123456789",
  "externalId": "ext_01234567890123456789",
  "name": "Zone 1",
  "coverageAreaId": "coa_01234567890123456789",
  "storeLocationIds": "['stl_01234567890123456789', 'stl_01234567890123456789']",
  "deliveryWindowIds": "['dw_01234567890123456789', 'dw_01234567890123456789']",
  "tags": "['service:rapid', 'franchise_location']",
  "isDeleted": false
}

Path Parameters

id
string
required

Body

application/json

Expected input payload for updating a zone.

name
string | null

The name of the zone.

coverageAreaId
string | null

The coverage area id to associate with the zone.

storeLocationIds
string[] | null

The store location ids to associate with the zone.

tags
string[] | null

Free form tags specific to the location.

Response

200
application/json
OK

Response for zone.

id
string
required

The ID of the zone.

externalId
string | null
required

The external ID of the zone.

name
string | null
required

The name of the zone.

coverageAreaId
string | null
required

The ID of the coverage area.

storeLocationIds
string[] | null
required

The store location IDs of the zone.

deliveryWindowIds
string[] | null
required

The delivery window IDs of the zone.

tags
string[] | null
required

The tags of the zone.

isDeleted
boolean | null
required

Whether the zone is deleted.