REST API has a REST API that allows to access all functionality that is available in the frontend UI. This Rest API can be found here. Below we show you how to use the REST API with some CURL examples.

Sandbox access

On the API page there is a sandbox option that allows to easily extract json information when logged in. This helps to test any query quickly and to extract additional information.


Below we will give some example CURL queries to get you started quickly:

Return inventory list

This shows how to return the full inventory list

curl --digest -u<your_password> -X  "GET" -H "Content-type: application/x-www-form-urlencoded"

Set device name, address and location

This CURL call shows how to set a new device name, an address and the location with latitude and longitude.

curl --digest -u<your_password> -X "PATCH" -d "_format=json&device_name=new+name&city=Oslo&zip=1111&address=Storgata&latitude=60.321&longitude=20.123" -H "Content-type:application/x-www-form-urlencoded"