Zaktualizuj opakowanie
PUT
/api/packing/v2/containers/{id}
const url = 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/packing/v2/containers/1';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"id":1,"name":"example","height":1,"length":1,"width":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 PUT \ --url https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/packing/v2/containers/1 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": 1, "name": "example", "height": 1, "length": 1, "width": 1, "position": 1, "marginLength": 1, "marginWidth": 1, "marginHeight": 1, "itemsNumberThesholdToApplyMargin": 1 }'Aktualizuje wymiary i parametry opakowania.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry ścieżki
Dział zatytułowany „Parametry ścieżki”id
wymagane
integer format: int64
Treść żądania
Dział zatytułowany „Treść żądania”object
id
integer format: int64
name
string
height
number format: double
length
number format: double
width
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, "length": 1, "width": 1, "position": 1, "marginLength": 1, "marginWidth": 1, "marginHeight": 1, "itemsNumberThesholdToApplyMargin": 1}object
id
integer format: int64
name
string
height
number format: double
length
number format: double
width
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, "length": 1, "width": 1, "position": 1, "marginLength": 1, "marginWidth": 1, "marginHeight": 1, "itemsNumberThesholdToApplyMargin": 1}object
id
integer format: int64
name
string
height
number format: double
length
number format: double
width
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, "length": 1, "width": 1, "position": 1, "marginLength": 1, "marginWidth": 1, "marginHeight": 1, "itemsNumberThesholdToApplyMargin": 1}Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success

