Skip to main content

productVariantReorder Mutation

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

Requires the MANAGE_PRODUCTSpermission.
productVariantReorder(
moves: [ReorderInput!]!
productId: ID!
): ProductVariantReorder
Show return type

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 the MANAGE_PRODUCTSpermission.