Skip to main content

Create a new restricted zone

POST 

/v1/restricted-zones

Add a new restricted rate zone to the system

Request

Body

required
    zoneName stringrequired
    geo objectrequired
    type stringrequired
    coordinates number[]required

    Array of rings for the polygon. Each ring is an array of [longitude, latitude] pairs. The first and last point must be the same.

Responses

Restricted zone created successfully

Schema
    _id stringrequired

    The ID of the restricted zone

    activate booleanrequired

    Whether the restricted zone is active

    createdDate date-timerequired

    The created date of the restricted zone

    latestUpdate date-timerequired

    The latest update date of the restricted zone

Loading...