Skip to content

Get safe-zone for device

GET
/devices/id/getSafeZone

Parameters

Path Parameters

id*

device id

Typenumber
Required

Responses

Body (JSON)
JSON
{
"outline": [
{
}
],
"center": null,
"radius": 0,
"type": "string",
"name": "string",
"wasInside": true,
"lastChecked": "string",
"modified": true,
"meta": {
},
"foreignId": "string",
"id": 0,
"deviceId": 0,
"configId": 0,
"userId": 0
}

Samples

cURL
curl -X GET https://api.lightbug.cloud/api/devices/id/getSafeZone
JavaScript
fetch("https://api.lightbug.cloud/api/devices/id/getSafeZone")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("https://api.lightbug.cloud/api/devices/id/getSafeZone");
Python
import requests
response = requests.get("https://api.lightbug.cloud/api/devices/id/getSafeZone")
print(response.json())