- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateStockLocationsWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the updateStockLocationsWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow updates stock locations matching the specified filters. It's used by the Update Stock Location Admin API Route.
You can use this workflow within your own customizations or custom workflows, allowing you to update stock locations in your custom flows.
Source CodeExamples#
Steps#
Input#
UpdateStockLocationsWorkflowInput
UpdateStockLocationsWorkflowInputThe data to update the stock locations.
UpdateStockLocationsWorkflowInput
UpdateStockLocationsWorkflowInputselector
FilterableStockLocationPropsThe filters to select the stock locations to update.
selector
FilterableStockLocationPropsupdate
UpdateStockLocationInputThe data to update the stock locations with.
update
UpdateStockLocationInputOutput#
StockLocationDTO[]
StockLocationDTO[]
StockLocationDTO[]
StockLocationDTO[]StockLocationDTO
StockLocationDTORepresents a Stock Location
StockLocationDTO
StockLocationDTOWas this page helpful?