qbee.io 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.
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 email@example.com:<your_password> -X "GET" -H "Content-type: application/x-www-form-urlencoded" https://www.app.qbee.io/api/v2/inventorylist
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 firstname.lastname@example.org:<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" https://www.app.qbee.io/api/v2/deviceattribute/2fa69b10905a2c40b0d2a5d51d1d56517b3f62c28fa631cd3f4129d98543298