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 MANAGE_PRODUCTSpermission.
productVariantReorder(
moves: [ReorderInput!]!
productId: ID!
): ProductVariantReorder

Arguments

productVariantReorder.moves ● [ReorderInput!]! non-null input

The list of variant reordering operations.

productVariantReorder.productId ● ID! non-null scalar

Id of product that variants order will be altered.

Type

ProductVariantReorder object

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

Requires MANAGE_PRODUCTSpermission.

Was this page helpful?