Sensors

Get Sensors

GET https://api.binity.io/v1/companies/:uuid/sensors

Get all sensors of that specific company.

Headers

Name
Type
Description

Authorization

string

Bearer Token

{
  "sensors":[
    {
      "uuid":"3f39ef00-be99-44ad-86c0-3ec923aa53b8",
      "hardware_id":"359315079646732",
      "sensor_type":"binsonic",
      "container_uuid": "73fa0998-d82e-4f74-81a8-2723fa7218ba",
      "created_at":"2020-06-20T22:58:54.105+02:00",
      "updated_at":"2020-07-05T18:38:48.259+02:00"
    }
  ],
  "meta":{
    "pagination":{
      "per_page":25,
      "total_pages":1,
      "total_objects":1,
      "links":{
        "first":"/v1/companies/3cee8a68-ee57-4a05-a9e4-1d19f4a2112b/sensors?page=1",
        "last":"/v1/companies/3cee8a68-ee57-4a05-a9e4-1d19f4a2112b/sensors?page=1"
      }
    }
  }
}

Create Sensor

POST https://api.binity.io/v1/companies/:uuid/sensors

Create a new sensor.

Headers

Name
Type
Description

Authorization

string

Bearer Token

Request Body

Name
Type
Description

hardware_id

string

Unique hardware identifier.

sensor_type

string

We are currently supporting 'binsonic', 'sloc', 'rhenus', 'lct' and 'livt'.

container_uuid

string

The container this sensor should be attached to.

{
  "sensor":{
    "uuid":"3f39ef00-be99-44ad-86c0-3ec923aa53b8",
    "hardware_id":"359315079646732",
    "sensor_type":"binsonic",
    "container_uuid": "73fa0998-d82e-4f74-81a8-2723fa7218ba",
    "created_at":"2020-06-20T22:58:54.105+02:00",
    "updated_at":"2020-07-05T18:38:48.259+02:00"
  }
}

Get Sensor

GET https://api.binity.io/v1/companies/:uuid/sensors/:sensor_uuid

Get data of a single sensor.

Headers

Name
Type
Description

Authorization

string

Bearer Token

{
  "sensor":{
    "uuid":"3f39ef00-be99-44ad-86c0-3ec923aa53b8",
    "hardware_id":"359315079646732",
    "sensor_type":"binsonic",
    "container_uuid": "73fa0998-d82e-4f74-81a8-2723fa7218ba",
    "created_at":"2020-06-20T22:58:54.105+02:00",
    "updated_at":"2020-07-05T18:38:48.259+02:00"
  }
}

Update Sensor

PATCH https://api.binity.io/v1/companies/:uuid/sensors/:sensor_uuid

Update data of a single sensor.

Headers

Name
Type
Description

Authorization

string

Bearer Token

{
  "sensor":{
    "uuid":"3f39ef00-be99-44ad-86c0-3ec923aa53b8",
    "hardware_id":"359315079646732",
    "sensor_type":"binsonic",
    "container_uuid": "73fa0998-d82e-4f74-81a8-2723fa7218ba",
    "created_at":"2020-06-20T22:58:54.105+02:00",
    "updated_at":"2020-07-05T18:38:48.259+02:00"
  }
}

Delete Location

DELETE https://api.binity.io/v1/companies/:uuid/sensors/:sensor_uuid

Delete a single sensor.

Headers

Name
Type
Description

Authorization

string

Bearer Token

{
  "deleted": true
}

Last updated

Was this helpful?