Skip to main content
POST
Post Sensors

Authorizations

Authorization
string
header
required

A JWT Bearer token header for authentication and authorization, in the format Authorization: Bearer <token>

Headers

x-client-secret
string
required

A secret token identifying the client connecting to the API

Example:

"Syou3EZiO5vuMEgNyBeA8cjEMYOnQDwP"

Body

application/json
measurement_property
MeasurementProperty · object
required

The physical quantity this sensor measures

reference
string
required

What the supplier refers to this sensor by

Maximum string length: 255
units
string
required

The units of measurement for this sensor

facility_id
string | null

The facility where the sensor is installed

Required string length: 20 - 37
Example:

"fcl_1G8QT5ZAB1S0XSDW"

manufacturer
string | null

The manufacturer of the sensor

model
string | null

The model of the sensor

storage_location_id
string | null

The storage location where the sensor is stored

Required string length: 20 - 37
Example:

"slc_1F3PMGVC91S0SBK3"

Response

Successful Response

id
string
required
Required string length: 20 - 37
Examples:

"sns_1GJ82BEMB1S0FBFV"

"sns_1CCYZYWFWSBXYG38"

manufacturer
string | null
required
measurement_property
MeasurementProperty · object
required
model
string | null
required
project_id
string
required
reference
string
required
units
string
required