Skip to main content
POST
Post Feedstock Batch

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 - 150
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 - 200

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 | null
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 - 200