- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateProductsStep - Medusa Core Workflows Reference
This documentation provides a reference to the updateProductsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step updates one or more products.
Example#
To update products by their ID:
To update products matching a filter:
Input#
UpdateProductsStepInput
UpdateProductsStepInputThe details of the products update.
UpdateProductsStepInput
UpdateProductsStepInputselector
FilterableProductPropsThe filters to select the products to update.
selector
FilterableProductPropsupdate
UpdateProductDTOThe data to update the products with.
update
UpdateProductDTOproducts
UpsertProductDTO[]The data to create or update products.
products
UpsertProductDTO[]Output#
ProductDTO[]
ProductDTO[]
ProductDTO[]
ProductDTO[]ProductDTO
ProductDTOA product's data.
ProductDTO
ProductDTOWas this page helpful?