Update a restricted zone
PATCH/v1/restricted-zones/:id
Update an existing restricted zone by ID
Request
Path Parameters
id stringrequired
Restricted zone ID
- application/json
Body
required
zoneName string
geo object
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
- 200
- 404
Restricted zone updated 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 not found
Loading...