Post Production Batch

Changed on

Creates a production batch in the Isometric system

post/production_batches

Request

  • Base URL
    https://api.isometric.com/mrv/v0
  • URL
    https://api.isometric.com/mrv/v0/production_batches
  • Auth
    HTTP bearer

Headers

x-client-secretstring required

A secret token identifying the client connecting to the API

Example:Syou3EZiO5vuMEgNyBeA8cjEMYOnQDwP

Request body

facility_idstring required

The facility where the production batch was created

feedstock_type_idsstring[] required

The kinds of feedstock used to create this production batch

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

kind'biochar' required
started_atstring date-time required

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

ended_atstring date-time required

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

display_namestring nullable

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

Example request

{
  "facility_id": "fcl_1G8QT5ZAB1S0XSDW",
  "feedstock_type_ids": [
    "ftt_1D7KZ1P761S0G7BN"
  ]
}

Response

Successful Response

idstring required
facility_idstring required
feedstock_type_idsstring[] 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.

kind'biochar' required
started_atstring date-time required
ended_atstring date-time required
uploaded_atstring date-time required
display_namestring required

Example response

{
  "id": "ptb_1GAFJ4C051S06E0Z",
  "facility_id": "fcl_1G8QT5ZAB1S0XSDW",
  "feedstock_type_ids": [
    "ftt_1D7KZ1P761S0G7BN"
  ]
}

Changes

    • breaking

      added the new required request property

    • breaking

      the / response property's maxLength was increased from 100 to 200 for the response status

    • breaking

      removed the required property from the response with the status

    • warning

      removed the request property

    • info

      the / request property's maxLength was increased from 100 to 150

    • info

      the request property's maxLength was increased from 100 to 200

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the required property to the response with the status

    • info

      endpoint added