updateVariants - Product Module Reference
BetaThis documentation provides a reference to the updateVariants method. This belongs to the Product Module.
updateVariants(id, data, sharedContext?): Promise<ProductVariantDTO>
This method is used to update a variant.
Example
Parameters
id
stringRequiredThe ID of the variant to be updated.
The attributes of the variant to be updated
Returns
The updated variant.
updateVariants(selector, data, sharedContext?): Promise<ProductVariantDTO[]>
This method is used to update a list of variants matching the specified filters.
Example
Parameters
The filters specifying which variants to update.
The attributes to be updated on the selected variants
Returns
The updated variants.
Was this section helpful?