POST
/
sensors
Post Sensors
curl --request POST \
  --url https://api.sandbox.isometric.com/mrv/v0/sensors \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-client-secret: <x-client-secret>' \
  --data '{
  "facility_id": "fcl_1G8QT5ZAB1S0XSDW",
  "manufacturer": "<string>",
  "measurement_property": {
    "qualifier": "base_saturation_ca_2plus",
    "quantity_kind": "acidity"
  },
  "model": "<string>",
  "reference": "<string>",
  "storage_location_id": "slc_1F3PMGVC91S0SBK3",
  "units": "<string>"
}'
{
  "id": "sns_1GJ82BEMB1S0FBFV",
  "manufacturer": "<string>",
  "measurement_property": {
    "qualifier": "base_saturation_ca_2plus",
    "quantity_kind": "acidity"
  },
  "model": "<string>",
  "project_id": "<string>",
  "reference": "<string>",
  "units": "<string>"
}

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

Examples:

"Syou3EZiO5vuMEgNyBeA8cjEMYOnQDwP"

Body

application/json
measurement_property
object
required

The physical quantity this sensor measures

reference
string
required

What the supplier refers to this sensor by

Maximum 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
Examples:

"fcl_1G8QT5ZAB1S0XSDW"

"fcl_1E384BDCGSBXNNZZ"

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
Examples:

"slc_1F3PMGVC91S0SBK3"

"slc_1DCY5K78BSBX3XMZ"

Response

Successful Response

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

"sns_1GJ82BEMB1S0FBFV"

"sns_1CCYZYWFWSBXYG38"

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