Przejdź do głównej zawartości

Zaktualizuj magazyn

PUT
/api/warehouses/v2/warehouses/{id}
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.

id
wymagane
integer format: int64
object
id
wymagane
integer format: int64
name
wymagane
string
nullable
description
string
nullable
address
wymagane
string
nullable
postCode
wymagane
string
nullable
city
wymagane
string
nullable
country
wymagane
string
nullable
catalogIds
Array<integer>
nullable
stockEdition
wymagane
boolean
warehouseType
wymagane
string
nullable
Examplegenerated
{
"id": 1,
"name": "example",
"description": "example",
"address": "example",
"postCode": "example",
"city": "example",
"country": "example",
"catalogIds": [
1
],
"stockEdition": true,
"warehouseType": "example"
}

Success