Skip to content

Update configuration for a device

PUT
/devices/id/config

Parameters

Path Parameters

id*

device id

Typenumber
Required

Request Body

JSON
{
"currentFW": "string",
"otaFW": "string",
"interval": 0,
"sleepInterval": 0,
"packing": 0,
"movementSensitivity": 0,
"debounce": 0,
"movementSensitivity2": 0,
"behavior": 0,
"modeControl": 0,
"modeControl2": 0,
"gpsTimeout": 0,
"transmitTimeout": 0,
"gpsStabilize": 0,
"gpsCheckInterval": 0,
"stopTimeout": 0,
"tolerancePercentage": 0,
"reasonsToWake": [
{
}
],
"modified": "string",
"forceFw": true,
"updateAvailibility": 0,
"receivedAt": "string",
"reset": 0,
"flashTryCount": 0,
"homeWifiNetwork": "string",
"wakeAction": "string",
"alertAction": "string",
"timed": [
{
}
],
"command": 0,
"id": 0,
"deviceId": 0,
"safeZoneId": 0
}

Responses

Body (JSON)
JSON
{
"currentFW": "string",
"otaFW": "string",
"interval": 0,
"sleepInterval": 0,
"packing": 0,
"movementSensitivity": 0,
"debounce": 0,
"movementSensitivity2": 0,
"behavior": 0,
"modeControl": 0,
"modeControl2": 0,
"gpsTimeout": 0,
"transmitTimeout": 0,
"gpsStabilize": 0,
"gpsCheckInterval": 0,
"stopTimeout": 0,
"tolerancePercentage": 0,
"reasonsToWake": [
{
}
],
"modified": "string",
"forceFw": true,
"updateAvailibility": 0,
"receivedAt": "string",
"reset": 0,
"flashTryCount": 0,
"homeWifiNetwork": "string",
"wakeAction": "string",
"alertAction": "string",
"timed": [
{
}
],
"command": 0,
"id": 0,
"deviceId": 0,
"safeZoneId": 0
}

Samples

cURL
curl -X PUT https://api.lightbug.cloud/api/devices/id/config
JavaScript
fetch("https://api.lightbug.cloud/api/devices/id/config", { method: "PUT" })
  .then(response => response.json())
  .then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.lightbug.cloud/api/devices/id/config");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.put("https://api.lightbug.cloud/api/devices/id/config")
print(response.json())