> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/products/llms.txt)
> Source: https://docs.saleor.io/api-reference/products/mutations/product-variant-reorder

# productVariantReorder Mutation

Reorder the variants of a product. Mutation updates updated\_at on product and triggers PRODUCT\_UPDATED webhook.

Requires the MANAGE\_PRODUCTS permission.

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

Details

```graphql
type ProductVariantReorder {
  product: Product
  productErrors: [ProductError!]! @deprecated
  errors: [ProductError!]!
}
```

<a id="arguments"></a>

### Arguments

<a id="moves"></a>

#### [`moves`](#moves) ● [`[ReorderInput!]!`](/api-reference/miscellaneous/inputs/reorder-input.md)

The list of variant reordering operations.

<a id="product-id"></a>

#### [`productId`](#product-id) ● [`ID!`](/api-reference/miscellaneous/scalars/id.md)

Id of product that variants order will be altered.

<a id="type"></a>

### Type

<a id="productvariantreorder"></a>

#### [`ProductVariantReorder`](/api-reference/products/objects/product-variant-reorder.md)

Reorder the variants of a product. Mutation updates updated\_at on product and triggers PRODUCT\_UPDATED webhook.

Requires the MANAGE\_PRODUCTS permission.
