Loading...
Was this page helpful?
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.
To update product variants by their ID:
To update product variants matching a filter:
UpdateProductVariantsStepInput
UpdateProductVariantsStepInputselector
FilterableProductVariantPropsupdate
UpdateProductVariantDTOproduct_variants
UpsertProductVariantDTO[]ProductVariantDTO[]
ProductVariantDTO[]id
stringtitle
stringsku
null | stringbarcode
null | stringean
null | stringupc
null | stringallow_backorder
booleanmanage_inventory
booleanrequires_shipping
booleanhs_code
null | stringorigin_country
null | stringmid_code
null | stringmaterial
null | stringweight
null | numberlength
null | numberheight
null | numberwidth
null | numbermetadata
null | Record<string, unknown>product_id
null | stringcreated_at
string | Dateupdated_at
string | Datedeleted_at
string | Datevariant_rank
null | numberOptional