Skip to content

Set flight mode for a device

GET
/devices/id/flightMode

Parameters

Path Parameters

id*

device id

Typenumber
Required

Query Parameters

duration*

How long to go into flightMode, in minutes

Typenumber
Required

Responses

Request was successful
JSON
{
}

Samples

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