Skip to main content
Version: 3.x

productVariantReorder

Reorder the variants of a product. Mutation updates updated_at on product and triggers PRODUCT_UPDATED webhook.

Requires one of the following permissions: MANAGE_PRODUCTS.

productVariantReorder(
moves: [ReorderInput!]!
productId: ID!
): ProductVariantReorder

Arguments

moves ([ReorderInput!]!)

The list of variant reordering operations.

productId (ID!)

Id of product that variants order will be altered.

Type

ProductVariantReorder

Reorder the variants of a product. Mutation updates updated_at on product and triggers PRODUCT_UPDATED webhook.

Requires one of the following permissions: MANAGE_PRODUCTS.