Skip to main content

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.

ParameterTypeDescriptionExample/Possible Values
PATH PARAMS
serialstringrequired
Serial number of the Rock7 device
Add a path param
QUERY PARAMS
latitudedoubleLatitude of the home location51.5074
longitudedoubleLongitude of the home location-0.1278
radiusint32required
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
}