Utwórz opakowanie
POST
/api/packing/v2/containers
const url = 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/packing/v2/containers';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"id":1,"name":"example","height":1,"width":1,"length":1,"position":1,"marginLength":1,"marginWidth":1,"marginHeight":1,"itemsNumberThesholdToApplyMargin":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
id
integer format: int64
name
string
height
number format: double
width
number format: double
length
number format: double
position
integer format: int32
marginLength
number format: double
marginWidth
number format: double
marginHeight
number format: double
itemsNumberThesholdToApplyMargin
integer format: int32
Examplegenerated
{ "id": 1, "name": "example", "height": 1, "width": 1, "length": 1, "position": 1, "marginLength": 1, "marginWidth": 1, "marginHeight": 1, "itemsNumberThesholdToApplyMargin": 1}object
id
integer format: int64
name
string
height
number format: double
width
number format: double
length
number format: double
position
integer format: int32
marginLength
number format: double
marginWidth
number format: double
marginHeight
number format: double
itemsNumberThesholdToApplyMargin
integer format: int32
Examplegenerated
{ "id": 1, "name": "example", "height": 1, "width": 1, "length": 1, "position": 1, "marginLength": 1, "marginWidth": 1, "marginHeight": 1, "itemsNumberThesholdToApplyMargin": 1}object
id
integer format: int64
name
string
height
number format: double
width
number format: double
length
number format: double
position
integer format: int32
marginLength
number format: double
marginWidth
number format: double
marginHeight
number format: double
itemsNumberThesholdToApplyMargin
integer format: int32
Examplegenerated
{ "id": 1, "name": "example", "height": 1, "width": 1, "length": 1, "position": 1, "marginLength": 1, "marginWidth": 1, "marginHeight": 1, "itemsNumberThesholdToApplyMargin": 1}Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success

