Skip to main content
POST
/
production_batches
Post Production Batch
curl --request POST \
  --url https://api.sandbox.isometric.com/mrv/v0/production_batches \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-client-secret: <x-client-secret>' \
  --data '
{
  "ended_at": "2023-11-07T05:31:56Z",
  "facility_id": "<string>",
  "feedstock_type_ids": [
    "<string>"
  ],
  "kind": "biochar",
  "mass": {
    "magnitude": 123,
    "unit": "<string>",
    "standard_deviation": 123
  },
  "started_at": "2023-11-07T05:31:56Z",
  "supplier_reference_id": "<string>",
  "display_name": "<string>"
}
'
{
  "display_name": "<string>",
  "ended_at": "2023-11-07T05:31:56Z",
  "facility_id": "<string>",
  "feedstock_type_ids": [
    "<string>"
  ],
  "id": "<string>",
  "kind": "biochar",
  "mass": {
    "magnitude": 123,
    "unit": "<string>",
    "standard_deviation": 123
  },
  "started_at": "2023-11-07T05:31:56Z",
  "supplier_reference_id": "<string>",
  "uploaded_at": "2023-11-07T05:31:56Z"
}

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 A secret token identifying the client connecting to the API

Body

application/json
ended_at
string<date-time>
required

The date and time at which production of this production batch was completed

facility_id
string
required

The facility where the production batch was created

Required string length: 20 - 37
feedstock_type_ids
string[]
required

The kinds of feedstock used to create this production batch

Required string length: 20 - 37
kind
enum<string>
required

The kind of production batch

Available options:
biochar
mass
ScalarQuantity · object
required
started_at
string<date-time>
required

The date and time at which production of this production batch was started

supplier_reference_id
string
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
display_name
string | null

The display name for this production batch. If not provided, one will be auto-generated from the facility name

Required string length: 1 - 100

Response

Successful Response

display_name
string
required
ended_at
string<date-time>
required
facility_id
string
required
Required string length: 20 - 37
feedstock_type_ids
string[]
required
Required string length: 20 - 37
id
string
required
Required string length: 20 - 37
kind
enum<string>
required
Available options:
biochar
mass
ScalarQuantity · object
required
started_at
string<date-time>
required
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
uploaded_at
string<date-time>
required