v3

latestOpenAPI 3.1.02026-08-0797185285.8 KB

Post Measurement Samples

post/measurement_samples

Headers

x-client-secretstring required

A secret token identifying the client connecting to the API

Example:Syou3EZiO5vuMEgNyBeA8cjEMYOnQDwP

A secret token identifying the client connecting to the API

Request body

supplier_reference_idstring nullable 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.

measured_atstring date-time required
project_idstring required
feedstock_batch_idstring nullable required
measurement_location_idstring nullable required
measurement_type'biochar_production_batch' | 'biochar_soil' | 'pyrolysis_reactor' | 'ew_soil' | 'ew_porewater' | 'ew_field_biomass' | 'ew_mineral_feedstock' | 'ew_ion_exchange_resin' required
storage_location_idstring nullable required
production_batch_idstring nullable

Example request

{
  "project_id": "prj_1CTWZQGKE1S0VAXA",
  "feedstock_batch_id": "ftb_1DYYDB3C91S0ZHPX",
  "measurement_location_id": "mlc_1CCZASA6Q1S0V8T4",
  "storage_location_id": "slc_1F3PMGVC91S0SBK3",
  "production_batch_id": "ptb_1GAFJ4C051S06E0Z"
}

Response

Successful Response

idstring required
supplier_reference_idstring nullable 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.

measured_atstring date required
measurement_location_idstring nullable required
production_batch_idstring nullable required

Example response

{
  "id": "mts_1D7HS15KD1S03M0Z",
  "values": [
    {
      "datapoint_id": "dtp_1DVKHKS101S0Q61Q"
    }
  ],
  "measurement_location_id": "mlc_1CCZASA6Q1S0V8T4",
  "production_batch_id": "ptb_1GAFJ4C051S06E0Z"
}