Updates variants of a specified product.
You can only call this method when authenticated as a Wix app or Wix user identity.
function updateProductVariants(
_id: string,
variants: Array<VariantOverride>,
): Promise<UpdateVariantsResponse>;
ID of the product with managed variants.
Variant info to update.
import { products } from "@wix/stores";
async function updateProductVariants(id, variants) {
const response = await products.updateProductVariants(id, variants);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.