Skip to main content
POST
Create a zone

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Expected payload for creating a zone.

externalId
string | null

Zone unique identifier from an external system.

name
string | null

The name of the zone.

Example:

"Zone 1"

coverageAreaId
string | null

The coverage area id to associate with the zone.

polygon
number[][] | null

The zone boundary, as a single closed ring of [latitude, longitude] coordinate pairs. The first and last point must be identical to close the ring. Setting this creates a coverage area for the zone (or replaces the polygon on its existing coverage area).

Example:
storeLocationIds
string[] | null

The store location ids to associate with the zone.

Example:
storeLocationAssociations
Storelocationassociations · object[] | null

The store location associations to associate with the zone.

Example:
tags
string[] | null

Free form tags specific to the location.

Example:

"['service:rapid', 'service:express', 'franchise_location']"

zoneMetadata
Zonemetadata · object | null

The metadata of the zone.

Example:

Response

OK

Response for zone.

id
string
required

The ID of the zone.

Example:

"zone_01234567890123456789"

name
string | null
required

The name of the zone.

Example:

"Zone 1"

externalId
string | null
required

The external ID of the zone.

Example:

"ext_01234567890123456789"

portalUrl
string | null
required

The portal URL of the zone.

Example:

"https://portal.usenash.com/settings/zones/zone_01234567890123456789"

coverageArea
Coveragearea · object | null
required

The coverage area of the zone.

Example:
storeLocations
StoreLocationResponse · object[] | null
required

The store locations of the zone.

Example:
storeLocationAssociations
Storelocationassociations · object[] | null
required

The store location associations of the zone.

Example:
zoneRestrictions
ZoneRestrictionResponse · object[] | null
required

The zone restrictions of the zone.

Example:
tags
string[] | null
required

The tags of the zone.

Example:
zoneMetadata
Zonemetadata · object | null
required

The metadata of the zone.

Example:
isDeleted
boolean | null
required

Whether the zone is deleted.

Example:

false