Create a new zone.
POST/v1/zones
Create a new zone.
Request
- application/json
Body
required
Date and time the zone was created.
Unique identifier for the owner (customer)
Date and time the zone was deleted.
Possible values: non-empty
and <= 80 characters
Name of zone.
Date and time the zone was updated.
Unique identifier for the zone
Zone geometry.
Responses
- 201
- default
Created
- application/json
- Schema
- Example (from schema)
Schema
A URL to the JSON Schema for this object.
data
object
required
A URL to the JSON Schema for this object.
Date and time the zone was created.
Unique identifier for the owner (customer)
Date and time the zone was deleted.
Possible values: non-empty
and <= 80 characters
Name of zone.
Date and time the zone was updated.
Unique identifier for the zone
Zone geometry.
{
"$schema": "string",
"data": {
"$schema": "string",
"createdAt": "2024-06-25T14:10:22.470Z",
"customer": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"zone": [
[
[
0
]
]
]
},
"status": 0,
"timestamp": "2024-06-25T14:10:22.470Z"
}
Error
- application/problem+json
- Schema
- Example (from schema)
Schema
Array [
]
A URL to the JSON Schema for this object.
A human-readable explanation specific to this occurrence of the problem.
errors
object[]
Optional list of individual error details
Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
Error message text
The value at the given location
A URI reference that identifies the specific occurrence of the problem.
HTTP status code
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
Default value: about:blank
A URI reference to human-readable documentation for the error.
{
"$schema": "string",
"detail": "string",
"errors": [
{
"location": "string",
"message": "string"
}
],
"instance": "string",
"status": 0,
"title": "string",
"type": "about:blank"
}