Update a flat zone
PATCH/v1/flat-zones/:id
Update an existing flat zone by ID
Request
Path Parameters
id stringrequired
Flat 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
Flat zone updated successfully
- application/json
- Schema
- Example (from schema)
Schema
_id stringrequired
The ID of the flat zone
zoneName stringrequired
The name of the flat zone
createdDate date-timerequired
The creation date of the flat zone
latestUpdate date-timerequired
The latest update date of the flat zone
{
"_id": "672d07188234567890123456",
"zoneName": "Flat Zone 1",
"createdDate": "2021-01-01",
"latestUpdate": "2021-01-01"
}
Flat zone not found
Loading...