productVariantsBulkReorder - admin-graphql - MUTATION
Version: 2024-04
Description:
Reorders multiple variants in a single product. This mutation can be called directly or via the bulkOperation.
Access Scopes
`write_products` access scope. Also: The user must have a permission to reorder product variants.
Arguments
-
positions:
ProductVariantPositionInput! -
An array of variant positions.
-
productId:
ID! -
The product ID of the variants to be reordered.
Returns
-
product:
Product
The updated product.
-
userErrors:
ProductVariantsBulkReorderUserError!
The list of errors that occurred from executing the mutation.
Examples