POST
/
material
Create material
curl --request POST \
  --url https://api.truecold.io/material \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "material_code": "<string>",
  "material_name": "<string>",
  "allowance": 123,
  "temperature_range_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "TOR_bucket_hours": 123,
  "min": 123,
  "max": 123
}'
{
  "material_code": "<string>",
  "material_name": "<string>",
  "allowance": 123,
  "temperature_range_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "TOR_bucket_hours": 123,
  "min": 123,
  "max": 123
}

Authorizations

x-api-key
string
header
required

API key for authentication. Contact your administrator to get an API key.

Body

application/json
material_code
string

Material code

material_name
string

Material name

allowance
number

Material allowance

temperature_range_id
string<uuid>

Temperature range ID of the material

TOR_bucket_hours
number

TOR bucket hours

min
number

Minimum temperature allowed by the material (ºC)

max
number

Maximum temperature allowed by the material (ºC)

Response

Successfully created material

material_code
string

Material code

material_name
string

Material name

allowance
number

Material allowance

temperature_range_id
string<uuid>

Temperature range ID of the material

TOR_bucket_hours
number

TOR bucket hours

min
number

Minimum temperature allowed by the material (ºC)

max
number

Maximum temperature allowed by the material (ºC)