updateProductVariants( )
Developer Preview
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Updates variants of a specified product.
Admin Method
This function requires elevated permissions and runs only on the backend and on dashboard pages.
Permission Scopes
For app development, you must have one of the following permission scopes:Manage Stores - all permissions
Manage Products
Learn more about permission scopes.
Method Declaration
Copy
Method Parameters
_idstringRequired
ID of the product with managed variants.
variantsArray<VariantOverride>Required
Variant info to update.
Returns
Return Type:Promise<UpdateVariantsResponse>
Was this helpful?
Yes
No