Zaktualizuj magazyn
PUT
/api/warehouses/v2/warehouses/{id}
const url = 'https://twoja-instancja-pim-api.enterprise.sellrocket.pl/api/warehouses/v2/warehouses/1';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"id":1,"name":"example","description":"example","address":"example","postCode":"example","city":"example","country":"example","catalogIds":[1],"stockEdition":true,"warehouseType":"example"}'};
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/warehouses/v2/warehouses/1 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": 1, "name": "example", "description": "example", "address": "example", "postCode": "example", "city": "example", "country": "example", "catalogIds": [ 1 ], "stockEdition": true, "warehouseType": "example" }'Aktualizuje dane magazynu. Odpowiednik addInventoryWarehouse (edycja) w BaseLinker.
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
wymagane
integer format: int64
name
wymagane
string
description
string
address
wymagane
string
postCode
wymagane
string
city
wymagane
string
country
wymagane
string
catalogIds
Array<integer>
stockEdition
wymagane
boolean
warehouseType
wymagane
string
Examplegenerated
{ "id": 1, "name": "example", "description": "example", "address": "example", "postCode": "example", "city": "example", "country": "example", "catalogIds": [ 1 ], "stockEdition": true, "warehouseType": "example"}object
id
wymagane
integer format: int64
name
wymagane
string
description
string
address
wymagane
string
postCode
wymagane
string
city
wymagane
string
country
wymagane
string
catalogIds
Array<integer>
stockEdition
wymagane
boolean
warehouseType
wymagane
string
Examplegenerated
{ "id": 1, "name": "example", "description": "example", "address": "example", "postCode": "example", "city": "example", "country": "example", "catalogIds": [ 1 ], "stockEdition": true, "warehouseType": "example"}object
id
wymagane
integer format: int64
name
wymagane
string
description
string
address
wymagane
string
postCode
wymagane
string
city
wymagane
string
country
wymagane
string
catalogIds
Array<integer>
stockEdition
wymagane
boolean
warehouseType
wymagane
string
Examplegenerated
{ "id": 1, "name": "example", "description": "example", "address": "example", "postCode": "example", "city": "example", "country": "example", "catalogIds": [ 1 ], "stockEdition": true, "warehouseType": "example"}Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success

