Superfy Platform API Documentation


Set Specific Sensor Setting API

Require Authentication

This API is used to set sensor settings to 1 specific sensor registered by the company based on combination of deviceID and token.


URL

api/sensors/setspecificsettings

Required parameter (POST)

Optional parameter

Example JSON Payload

{
  "deviceID": "ABCD-EFGH-IJKL-MNOP",
  "token": "c43fa596e7916827106b591e2bb026cd",
  "sensorsID": 1,
  "heartbeatFrequency": 3600
}

Possible return HTTP status code

Return message

{
  "status": "success",
  "message": {
    "sensorsID": 1,
    "heartbeatFrequency": 3600,
    "lastUpdate": 1464284551
  }
}