Returns Geofence instance
Security
apiKey
The unit in which the radius is taken, eg - kilometers, meters etc
Enum:"KILOMETERS""METERS""MILES"
The actions to be performed on the device
Items Enum:"LOCK_DOWN""BEEP"
- Mock serverhttps://develop-api.esper.io/_mock/openapi/v0/enterprise/{enterprise_id}/create-apply-geo-fence/
- https://develop-api.esper.cloud/apihttps://develop-api.esper.cloud/api/v0/enterprise/{enterprise_id}/create-apply-geo-fence/
curl -i -X POST \
'https://develop-api.esper.io/_mock/openapi/v0/enterprise/{enterprise_id}/create-apply-geo-fence/' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: */*' \
-d '{
"name": "string",
"description": "string",
"latitude": "string",
"longitude": "string",
"radius": 0,
"radius_unit": "KILOMETERS",
"device_actions": [
"LOCK_DOWN"
],
"devices": [
"string"
]
}'successful operation
The unit in which the radius is taken, eg - kilometers, meters etc
Enum:"KILOMETERS""METERS""MILES"
The actions to be performed on the device
Items Enum:"LOCK_DOWN""BEEP"
Date and time of when the geofence was created
Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "description": "string", "enterprise": "796caaf9-a7de-4817-9ffa-39d04bf83de9", "latitude": "string", "longitude": "string", "radius": 0, "radius_unit": "KILOMETERS", "device_actions": [ "LOCK_DOWN" ], "device_count": 0, "created_by": "string", "created_on": "2019-08-24T14:15:22Z", "updated_on": "2019-08-24T14:15:22Z" }