Skip to main content
POST
/
handling_unit
Create handling_unit
curl --request POST \
  --url https://api.truecold.io/handling_unit \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "code": "<string>",
  "material_id": "<string>",
  "delivery_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "zone_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "site_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "date": "2023-11-07T05:31:56Z"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "code": "<string>",
  "material_code": "<string>",
  "material_name": "<string>",
  "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "site_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "soft_deleted": "2023-11-07T05:31:56Z",
  "soft_deleted_by": "<string>",
  "material_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "TOR_accumulated_minutes": 123,
  "max_temp": 123,
  "min_temp": 123,
  "updated_at": "2023-11-07T05:31:56Z",
  "zone_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "delivery_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "emails_to_notify": [
    "<string>"
  ],
  "avg_temp": 123,
  "humidity_min": 123,
  "humidity_max": 123,
  "humidity_avg": 123,
  "risk_score": 123,
  "archived": true
}

Documentation Index

Fetch the complete documentation index at: https://integrations.truecold.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

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

Body

application/json

Handling unit input data for creation

code
string
required

Handling unit code

material_id
string
required

Related material ID

delivery_id
string<uuid> | null

Related delivery ID (optional)

zone_id
string<uuid>

Related zone ID (optional)

site_id
string<uuid>

Related site ID (optional)

date
string<date-time> | null

Custom creation date (optional, must be in the past)

Response

Successfully created handling_unit

Handling_unit entity (API response)

id
string<uuid>

Unique identifier

created_at
string<date-time>

Creation timestamp

code
string

code code

material_code
string

material code

material_name
string

material name

account_id
string<uuid>

Account ID

site_id
string<uuid>

Site ID

soft_deleted
string<date-time>

Soft deletion timestamp

soft_deleted_by
string

User who soft deleted the record

material_id
string<uuid>

Material ID

TOR_accumulated_minutes
integer

TOR Accumulated Minutes

max_temp
number

Max Temp

min_temp
number

Min Temp

updated_at
string<date-time>

Last update timestamp

zone_id
string<uuid>

Zone ID

delivery_id
string<uuid>

Delivery ID

emails_to_notify
string[]

Email address

avg_temp
number | null

Average temperature

humidity_min
number | null

Minimum humidity

humidity_max
number | null

Maximum humidity

humidity_avg
number | null

Average humidity

risk_score
number | null

Risk score

archived
boolean | null

Whether the handling unit is archived