Saltar al contenido principal
POST
/
v1
/
warehouse
/
containerTypes
Create a new container type
curl --request POST \
  --url https://api.bold-factory.com/v1/warehouse/containerTypes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "widthMm": 123,
  "heightMm": 123,
  "lengthMm": 123,
  "externalReference": "<string>"
}
'
{
  "id": "<string>",
  "externalReference": "<string>",
  "name": "<string>",
  "widthMm": 123,
  "heightMm": 123,
  "lengthMm": 123,
  "deletedAt": "2023-11-07T05:31:56Z",
  "createdAt": "2023-11-07T05:31:56Z",
  "createdBy": "<string>",
  "lastModifiedAt": "2023-11-07T05:31:56Z",
  "lastModifiedBy": "<string>"
}

Autorizaciones

Authorization
string
header
requerido

Use a valid JWT token in the Authorization header with the format 'Bearer {token}'

Cuerpo

application/json
name
string
requerido
widthMm
number<double>
requerido
heightMm
number<double>
requerido
lengthMm
number<double>
requerido
externalReference
null | string

Respuesta

Created

id
string
requerido
externalReference
null | string
requerido
name
string
requerido
widthMm
number<double>
requerido
heightMm
number<double>
requerido
lengthMm
number<double>
requerido
deletedAt
null | string<date-time>
requerido
createdAt
string<date-time>
requerido
createdBy
string
requerido
lastModifiedAt
string<date-time>
requerido
lastModifiedBy
string
requerido