Skip to main content
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 '
{
  "measurement_property": {
    "qualifier": "base_saturation_ca_2plus",
    "quantity_kind": "acidity"
  },
  "reference": "<string>",
  "units": "<string>",
  "facility_id": "fcl_1G8QT5ZAB1S0XSDW",
  "manufacturer": "<string>",
  "model": "<string>",
  "storage_location_id": "slc_1F3PMGVC91S0SBK3"
}
'
{
  "id": "<string>",
  "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

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
manufacturer
string | null
required
measurement_property
MeasurementProperty · object
required
model
string | null
required
project_id
string
required
reference
string
required
units
string
required