InventoryLocations
Update Location
Update a location by ID
Important validation rules:
- Non-sellable locations must be non-pickable
- STATIC locations cannot have parent locations
- Only STATIC locations can be marked as hospital locations
- Hospital locations must be non-pickable and non-sellable
Authorization
api_key x-access-token<token>
In: header
Path Parameters
location_id*string
The ID of the location to be updated
Request Body
application/json
The new values for the location
The new values for the location
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PATCH "https://example.com/shipos/locations/string" \ -H "Content-Type: application/json" \ -d '{}'{ "barcode": "string", "team_id": "string", "parent_location_name": "string", "parent_location_id": "string", "warehouse_name": "string", "warehouse_id": "string", "location_type_name": "string", "location_type_id": "string", "location_kind": "STATIC", "on_hand": 0.1, "flagged_for_review": true, "is_empty": true, "is_hospital": true, "updated_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "priority": 0.1, "sellable": true, "pickable": true, "name": "string", "id": "string", "product_stock": [ { "uom_label": "string", "uom_multiplier_to_eaches": 0, "uom_profile_id": "string", "location_kind": "STATIC", "location_pickable": true, "location_sellable": true, "parent_location_name": "string", "location_name": "string", "product_type": "STANDARD", "image_url": "string", "sku": "string", "name": "string", "warehouse_name": "string", "warehouse_id": "string", "team_id": "string", "merchant_team_id": "string", "fulfiller_team_id": "string", "location_id": "string", "product_id": "string", "created_at": "2019-08-24T14:15:22Z", "received_at": "2019-08-24T14:15:22Z", "expiration_date": "2019-08-24T14:15:22Z", "lot_code": "string", "updated_at": "2019-08-24T14:15:22Z", "on_hand": 0.1, "id": "string" } ], "child_locations": [ { "barcode": "string", "team_id": "string", "parent_location_name": "string", "parent_location_id": "string", "warehouse_name": "string", "warehouse_id": "string", "location_type_name": "string", "location_type_id": "string", "location_kind": "STATIC", "on_hand": 0.1, "flagged_for_review": true, "is_empty": true, "is_hospital": true, "updated_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "priority": 0.1, "sellable": true, "pickable": true, "name": "string", "id": "string", "product_stock": [ { "uom_label": "string", "uom_multiplier_to_eaches": 0, "uom_profile_id": "string", "location_kind": "STATIC", "location_pickable": true, "location_sellable": true, "parent_location_name": "string", "location_name": "string", "product_type": "STANDARD", "image_url": "string", "sku": "string", "name": "string", "warehouse_name": "string", "warehouse_id": "string", "team_id": "string", "merchant_team_id": "string", "fulfiller_team_id": "string", "location_id": "string", "product_id": "string", "created_at": "2019-08-24T14:15:22Z", "received_at": "2019-08-24T14:15:22Z", "expiration_date": "2019-08-24T14:15:22Z", "lot_code": "string", "updated_at": "2019-08-24T14:15:22Z", "on_hand": 0.1, "id": "string" } ] } ]}