- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateProductVariantsStep - Medusa Core Workflows Reference
This documentation provides a reference to the updateProductVariantsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step updates one or more product variants.
Example#
To update product variants by their ID:
To update product variants matching a filter:
Input#
UpdateProductVariantsStepInput
UpdateProductVariantsStepInputThe details of the product variants update.
UpdateProductVariantsStepInput
UpdateProductVariantsStepInputselector
FilterableProductVariantPropsThe filters to select the product variants to update.
selector
FilterableProductVariantPropsupdate
UpdateProductVariantDTOThe data to update the product variants with.
update
UpdateProductVariantDTOproduct_variants
UpsertProductVariantDTO[]The data to create or update product variants.
product_variants
UpsertProductVariantDTO[]Output#
ProductVariantDTO[]
ProductVariantDTO[]
ProductVariantDTO[]
ProductVariantDTO[]ProductVariantDTO
ProductVariantDTOA product variant's data.
ProductVariantDTO
ProductVariantDTOWas this page helpful?