Skip to content

Delete device point by id

DELETE
/devices/id/points/fk

Parameters

Path Parameters

id*

device id

Typenumber
Required
fk*

Foreign key for points

Typenumber
Required

Responses

Request was successful

Samples

cURL
curl -X DELETE https://api.lightbug.cloud/api/devices/id/points/fk
JavaScript
fetch("https://api.lightbug.cloud/api/devices/id/points/fk", { method: "DELETE" })
  .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/points/fk");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.delete("https://api.lightbug.cloud/api/devices/id/points/fk")
print(response.json())