CreateGeofenceRequest
Schema for creating a new geofence.
Supports three geometry types (PRD §3.1):
- Polygon: Standard GeoJSON Polygon
- MultiPolygon: Collection of polygons
- Circle: Point with radius_meters
v1.27 ADDR-04/05: also accepts source='address' + address instead of geometry.
Possible values: non-empty and <= 100 characters
description object
- string
- null
Possible values: <= 500 characters
geometry object
GeoJSON geometry (Polygon, MultiPolygon, or Circle). Required when source='draw'.
- GeoJSONPolygon
- GeoJSONMultiPolygon
- GeoJSONCircle
- null
Possible values: Value must match regular expression ^Polygon$
webhook_url object
- string
- null
Possible values: <= 2048 characters
webhook_events object
- string[]
- null
metadata object
- object
- null
group_name object
- string
- null
Possible values: <= 255 characters
source object
How this geofence was created.
- string
- null
Possible values: [draw, address]
address object
Required when source='address'.
- string
- null
Possible values: <= 1000 characters
buffer_meters object
Buffer radius in meters (address-source).
- integer
- null
Possible values: >= 1 and <= 10000
Override dedup conflicts.
falsetags object
Optional list of tag names to attach. Names are case-insensitive; new tags are created lazily.
- string[]
- null
{
"description": "Primary loading dock perimeter",
"geometry": {
"coordinates": [
[
[
-74.006,
40.7128
],
[
-74.006,
40.7138
],
[
-74.005,
40.7138
],
[
-74.005,
40.7128
],
[
-74.006,
40.7128
]
]
],
"type": "Polygon"
},
"group_name": "NYC Warehouses",
"metadata": {
"priority": "high",
"zone_type": "loading_dock"
},
"name": "Warehouse Zone A",
"webhook_events": [
"enter",
"exit"
],
"webhook_url": "https://example.com/webhooks/geofence-events"
}