Create a new restricted zone
POST/v1/restricted-zones
Add a new restricted rate zone to the system
Request
- application/json
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
- 201
- 409
Restricted zone created successfully
- application/json
- Schema
- Example (from schema)
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
{
"_id": "672d07188234567890123456",
"activate": true,
"createdDate": "2025-01-01T00:00:00.000Z",
"latestUpdate": "2025-01-01T00:00:00.000Z"
}
Restricted zone already exists
Loading...