Skip to main content
POST
/
feedstock_batches
Post Feedstock Batch
curl --request POST \
  --url https://api.sandbox.isometric.com/mrv/v0/feedstock_batches \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-client-secret: <x-client-secret>' \
  --data '
{
  "delivery_date": "2023-12-25",
  "display_name": "<string>",
  "feedstock_type_id": "<string>",
  "mass": {
    "magnitude": 123,
    "unit": "<string>",
    "standard_deviation": 123
  },
  "supplier_reference_id": "<string>"
}
'
{
  "created_at": "2023-11-07T05:31:56Z",
  "delivery_date": "2023-12-25",
  "display_name": "<string>",
  "feedstock_type_id": "<string>",
  "id": "<string>",
  "mass": {
    "magnitude": 123,
    "unit": "<string>",
    "standard_deviation": 123
  },
  "supplier_reference_id": "<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

Example:

"Syou3EZiO5vuMEgNyBeA8cjEMYOnQDwP"

Body

application/json
delivery_date
string<date>
required

The date the feedstock batch was delivered to a field / to a site etc

display_name
string
required

The display name for this feedstock batch

Required string length: 1 - 100
feedstock_type_id
string
required

The kind of feedstock used to create this feedstock batch

Required string length: 20 - 37
Examples:

"ftt_1D7KZ1P761S0G7BN"

"ftt_1CSRJN4HHSBXZ3TK"

mass
ScalarQuantity · object
required
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

Response

Successful Response

created_at
string<date-time>
required
delivery_date
string<date>
required
display_name
string
required
feedstock_type_id
string
required
Required string length: 20 - 37
Examples:

"ftt_1D7KZ1P761S0G7BN"

"ftt_1CSRJN4HHSBXZ3TK"

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

"ftb_1DYYDB3C91S0ZHPX"

"ftb_1G59XDK6HSBXCZ9B"

mass
ScalarQuantity · object
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