Deallocate / Detach Sensor to Asset API
Require Authentication
This API is used to deallocate / detach sensor from asset for the company based on combination of deviceID and token. Mass deallocation is possible by passing one parameter.
URL
api/sensors/deallocate
Required parameter (POST)
- deviceID
- token
- sensorsID «contains sensorsID that want to be deallocated. If only sensorsID is passed, without projectpinID, it will deallocate sensorsID from all bins.»
- projectpinID «contains projectpinID that want to be deallocated. If only projectpinID is passed, without sensorsID, it will deallocate all sensors from asset projectpinID.»
Optional parameter
Example JSON Payload
{ "deviceID": "ABCD-EFGH-IJKL-MNOP", "token": "c43fa596e7916827106b591e2bb026cd", "sensorsID": 1, "projectpinID": 9 }
Possible return HTTP status code
- 200
- 400
- 401
- 405
Return message
{ "status": "success", "message": [ "Sensor has been deallocated for sensor 1 and projectpinID 9" ] }