Skip to main content
PUT
Update package type

Authorizations

Authorization
string
header
required

An API token from Sign in, sent as Authorization: Bearer <token>. Tokens last 30 days.

Path Parameters

id
integer
required

The package type ID

Example:

1

Body

application/json
name
string

Package type name. Must not be greater than 255 characters.

Example:

"Box L"

length
number

Length. Must be at least 0. Must not be greater than 99999999999.

Example:

40

width
number

Width. Must be at least 0. Must not be greater than 99999999999.

Example:

30

height
number

Height. Must be at least 0. Must not be greater than 99999999999.

Example:

20

base_weight
number

Base package weight. Must be at least 0. Must not be greater than 99999999999.

Example:

1.5

max_weight
number

Maximum package weight. Must be at least 0. Must not be greater than 99999999999.

Example:

25

barcode
string | null

Package type barcode. Must not be greater than 255 characters.

Example:

"PKG-TYPE-001"

company_id
integer | null

Company ID. The id of an existing record in the companies table.

Example:

1

Response

Success