Search K
Appearance
Appearance
device id
curl -X PUT https://api.lightbug.cloud/api/devices/id/config
fetch("https://api.lightbug.cloud/api/devices/id/config", { method: "PUT" })
.then(response => response.json())
.then(data => console.log(data));
$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;
import requests
response = requests.put("https://api.lightbug.cloud/api/devices/id/config")
print(response.json())