Skip to main content
POST
Post Material

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"

Path Parameters

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

"prj_1CTWZQGKE1S0VAXA"

"prj_1E0QTWB22SBX34D1"

Body

application/json
material_type
string
required

The type of the material. Use GET /projects/{project_id}/supported_material_types to discover which types are valid for your project.

Example:

"hfc_ods_container"

name
string
required

The name of the material. Must be at most 100 characters long.

Required string length: 1 - 100
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
additional_metadata
Additional Metadata · object | null

Metadata fields that the project's protocol does not define for this asset type.

description
string | null

Description for the material. Must be at most 1000 characters long.

Maximum string length: 1000
measurements
CreateMaterialMeasurementRequest · object[] | null
metadata
Metadata · object

Metadata fields that the project's protocol defines for this asset type.

Response

Successful Response

additional_metadata
Additional Metadata · object
required

Metadata fields that the project's protocol does not define for this asset type.

description
string | null
required

Description for the material. Must be at most 1000 characters long.

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

"mtr_1DEK71X6W1S0PNYJ"

"mtr_1FFT1GGERSBXRMKH"

material_type
string
required

The type of the material. Use GET /projects/{project_id}/supported_material_types to discover which types are valid for your project.

Example:

"hfc_ods_container"

measurements
MeasurementValue · object[]
required
metadata
Metadata · object
required

Metadata fields that the project's protocol defines for this asset type.

name
string
required

The name of the material. Must be at most 100 characters long.

Maximum string length: 100
project_id
string
required
Required string length: 20 - 37
Examples:

"prj_1CTWZQGKE1S0VAXA"

"prj_1E0QTWB22SBX34D1"

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