id in the body the route's id is kept; a different one renames the warehouse's external id. distributor.id, when sent, must be the warehouse's current distributor — a warehouse cannot be moved to a different one. distributor.name is ignored here: a distributor is renamed through PUT v1/Distributors/{id}, not through one of its warehouses.curl --location --request PUT 'https://marketplacerest.perenso.net/v1/warehouses/' \
--header 'Content-Type: application/json' \
--data '{
"name": "Sydney Distribution Centre",
"status": "ACTIVE"
}'{
"name": "Sydney Distribution Centre",
"id": "WH-SYD",
"distributor": {
"id": "DIST-EAST",
"name": "Eastern Distribution"
},
"status": "ACTIVE"
}