Skip to content

Update user geofence by id

PUT
/users/id/geofences/fk

Parameters

Path Parameters

id*

user id

Typestring
Required
fk*

Foreign key for geofences

Typenumber
Required

Request Body

JSON
{
"outline": [
{
}
],
"center": null,
"radius": 0,
"type": "string",
"name": "string",
"wasInside": true,
"lastChecked": "string",
"modified": true,
"meta": {
},
"foreignId": "string",
"id": 0,
"deviceId": 0,
"configId": 0,
"userId": 0
}

Responses

Body (JSON)
JSON
{
"outline": [
{
}
],
"center": null,
"radius": 0,
"type": "string",
"name": "string",
"wasInside": true,
"lastChecked": "string",
"modified": true,
"meta": {
},
"foreignId": "string",
"id": 0,
"deviceId": 0,
"configId": 0,
"userId": 0
}

Samples

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