Przejdź do głównej zawartości

Utwórz opakowanie

POST
/api/packing/v2/containers
curl --request POST \
--url https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/packing/v2/containers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "id": 1, "name": "example", "height": 1, "width": 1, "length": 1, "position": 1, "marginLength": 1, "marginWidth": 1, "marginHeight": 1, "itemsNumberThesholdToApplyMargin": 1 }'

Dodaje nową definicję opakowania z wymiarami i ograniczeniami wagowymi.

object
id
integer format: int64
nullable
name
string
nullable
height
number format: double
width
number format: double
length
number format: double
position
integer format: int32
marginLength
number format: double
nullable
marginWidth
number format: double
nullable
marginHeight
number format: double
nullable
itemsNumberThesholdToApplyMargin
integer format: int32
nullable
Examplegenerated
{
"id": 1,
"name": "example",
"height": 1,
"width": 1,
"length": 1,
"position": 1,
"marginLength": 1,
"marginWidth": 1,
"marginHeight": 1,
"itemsNumberThesholdToApplyMargin": 1
}

Success