The Rest API is deprecated and will be removed in the future. We recommend using the GraphQL API instead. Some endpoints may not be available anymore.

Update stock location

PUT

https://api.pack.cloud/v1/warehouses/{warehouseId}/stock-locations/{stockLocationId}

Request

Path parameters

warehouseIdstring
stockLocationIdstring

Payload

stock_location_type_idstring
ID of the stock location type
pickableboolean
When true, stock in this location is available for picking
slotting_typestring
Slotting type (dynamic = unlink product when qty is zero)
Allowed values:dynamicstatic
product_limitintegernull
The number of products allowed to be stocked on this location. Use null for unlimited

Response

OK

Body

idstring
ID of the stock location
parent_idstringnull
ID of the parent stock location
stock_location_type_idstring
ID of the stock location type
namestring
Human readable location code
Example:A.02.05.B
slotting_typestring
Slotting type (dynamic = unlink product when qty is zero)
Allowed values:dynamicstatic
pickableboolean
When true, stock in this location is available for picking
sort_pathstring
Sort safe path
Example:A.000002.000005.B
product_limitintegernull
The number of products allowed to be stocked on this location. Use null for unlimited
created_atstring
Creation time of resource
updated_atstring
Latest update time of resource