POST
/
measurement_samples
Post Measurement Samples
curl --request POST \
  --url https://api.sandbox.isometric.com/mrv/v0/measurement_samples \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-client-secret: <x-client-secret>' \
  --data '{
  "feedstock_type_id": "ftt_1D7KZ1P761S0G7BN",
  "measured_at": "2023-11-07T05:31:56Z",
  "measurement_location_id": "mlc_1CCZASA6Q1S0V8T4",
  "measurement_type": "biochar_production_batch",
  "project_id": "prj_1CTWZQGKE1S0VAXA",
  "storage_location_id": "slc_1F3PMGVC91S0SBK3",
  "supplier_reference_id": "<string>",
  "values": [
    {
      "measurement_property": {
        "qualifier": "base_saturation_ca_2plus",
        "quantity_kind": "acidity"
      },
      "value": {
        "magnitude": 123,
        "standard_deviation": 123,
        "unit": "<string>"
      }
    }
  ]
}'
{
  "id": "mts_1D7HS15KD1S03M0Z",
  "measured_at": "2023-12-25",
  "measurement_location_id": "mlc_1CCZASA6Q1S0V8T4",
  "supplier_reference_id": "<string>",
  "values": [
    {
      "measurement_property": {
        "qualifier": "base_saturation_ca_2plus",
        "quantity_kind": "acidity"
      },
      "value": {
        "magnitude": 123,
        "standard_deviation": 123,
        "unit": "<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
feedstock_type_id
string | null
required
Required string length: 20 - 37
Examples:

"ftt_1D7KZ1P761S0G7BN"

"ftt_1CSRJN4HHSBXZ3TK"

measured_at
string<date-time>
required
measurement_location_id
string | null
required
Required string length: 20 - 37
Examples:

"mlc_1CCZASA6Q1S0V8T4"

"mlc_1GF73PG90SBXKEX1"

measurement_type
enum<string>
required
Available options:
biochar_production_batch,
biochar_soil,
pyrolysis_reactor,
ew_soil,
ew_porewater,
ew_field_biomass,
ew_mineral_feedstock,
ew_ion_exchange_resin
project_id
string
required
Required string length: 20 - 37
Examples:

"prj_1CTWZQGKE1S0VAXA"

"prj_1E0QTWB22SBX34D1"

storage_location_id
string | null
required
Required string length: 20 - 37
Examples:

"slc_1F3PMGVC91S0SBK3"

"slc_1DCY5K78BSBX3XMZ"

supplier_reference_id
string | null
required

A string that must be unique for all resources created by a specific supplier. It can be used by a client to identify the correct objects in their system.

Required string length: 1 - 100
values
CreateMeasurementSampleValueRequest · object[]
required

Response

Successful Response

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

"mts_1D7HS15KD1S03M0Z"

"mts_1FN0MEX2ZSBX40DT"

measured_at
string<date>
required
measurement_location_id
string | null
required
Required string length: 20 - 37
Examples:

"mlc_1CCZASA6Q1S0V8T4"

"mlc_1GF73PG90SBXKEX1"

supplier_reference_id
string | null
required

A string that must be unique for all resources created by a specific supplier. It can be used by a client to identify the correct objects in their system.

Required string length: 1 - 100
values
MeasurementValue · object[]
required