Set Device Home (GET)
https://core.rock7.com/API3/Device/{serial}/SetHome
For use with 'Away from Home' mode.
📘 Notes
Omitting Latitude/Longitude will instruct the device to use its current location as Home.
Parameter | Type | Description | Example/Possible Values |
---|---|---|---|
PATH PARAMS | |||
serial | string | required Serial number of the Rock7 device | Add a path param |
QUERY PARAMS | |||
latitude | double | Latitude of the home location | 51.5074 |
longitude | double | Longitude of the home location | -0.1278 |
radius | int32 | required Radius in meters | 25 , 50 , 100 , 250 , 1000 , 2000 , 3000 |
Example with Parameters​
curl --request GET \
--url 'https://core.rock7.com/API3/Device/12345/SetHome?latitude=51.5074&longitude=-0.1278&radius=100&username=myUsername&password=myPassword' \
--header 'accept: application/json'
Response​
{
"result": true
}