curl --request PATCH \
--url http://{defaultHost}/api/v2/platform/stock_locations/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"stock_location": {
"name": "Warehouse 3",
"default": true,
"address1": "South St. 8",
"address2": "South St. 109",
"country_id": "2",
"state_id": "4",
"city": "Los Angeles",
"state_name": "California",
"zipcode": "90005",
"phone": "23333456",
"active": true,
"backorderable_default": true,
"propagate_all_variants": true,
"admin_name": "<string>"
}
}
'{
"data": {
"id": "<string>",
"type": "<string>",
"attributes": {},
"relationships": {}
}
}Updates a Stock Location
curl --request PATCH \
--url http://{defaultHost}/api/v2/platform/stock_locations/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"stock_location": {
"name": "Warehouse 3",
"default": true,
"address1": "South St. 8",
"address2": "South St. 109",
"country_id": "2",
"state_id": "4",
"city": "Los Angeles",
"state_name": "California",
"zipcode": "90005",
"phone": "23333456",
"active": true,
"backorderable_default": true,
"propagate_all_variants": true,
"admin_name": "<string>"
}
}
'{
"data": {
"id": "<string>",
"type": "<string>",
"attributes": {},
"relationships": {}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes
Show child attributes
"Warehouse 3"
"South St. 8"
"South St. 109"
"2"
"4"
"Los Angeles"
"California"
"90005"
"23333456"
Was this page helpful?