Menu
Update Location
Update a Location
PUT
/inventories/locations/{location_uuid}Use it in a workflow
- Add a step and choose the Elastic Path connector.
- Pick the Update Location action (under Inventory).
- Fill in the fields below, then reference the result from later steps as
{{updateLocation.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"type": "inventory_location",
"attributes": {
"name": "Milton Keynes Warehouse",
"external_ref": "mk-stock-warehouse-walnut-tree",
"slug": "milton-keynes-warehouse",
"description": "Southern dispatch location for all inventory",
"address": [
"string"
],
"geolocation": {
"lat": 51.477928,
"lon": -0.001545
}
}
}
}
Response
Returns 200 with an object. Read it in later steps with {{updateLocation.response.data.<field>}}.
{
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"type": "inventory_location",
"attributes": {
"name": "Milton Keynes Warehouse",
"slug": "milton-keynes-warehouse",
"external_ref": "mk-stock-warehouse-walnut-tree",
"description": "Southern dispatch location for all inventory",
"address": [
"string"
],
"geolocation": {
"lat": 51.477928,
"lon": -0.001545
}
},
"meta": {
"timestamps": {
"created_at": "2017-01-10T11:41:19.244842Z",
"updated_at": "2017-01-10T11:41:19.244842Z"
}
}
}
}
Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.
Was this page helpful?