Skip to content

Update device trigger by id

PUT
/devices/id/notificationTriggers/fk

Parameters

Path Parameters

id*

device id

Typenumber
Required
fk*

Foreign key for notificationTriggers

Typenumber
Required

Request Body

JSON
{
"name": "string",
"type": "string",
"parameters": {
},
"muteFor": 0,
"lastTriggered": "string",
"delivery": {
},
"id": 0,
"deviceId": 0,
"userId": 0
}

Responses

Body (JSON)
JSON
{
"name": "string",
"type": "string",
"parameters": {
},
"muteFor": 0,
"lastTriggered": "string",
"delivery": {
},
"id": 0,
"deviceId": 0,
"userId": 0
}

Samples

cURL
curl -X PUT https://api.lightbug.cloud/api/devices/id/notificationTriggers/fk
JavaScript
fetch("https://api.lightbug.cloud/api/devices/id/notificationTriggers/fk", { 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/notificationTriggers/fk");
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/notificationTriggers/fk")
print(response.json())