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

# productMediaReorder Mutation

Changes ordering of the product media.

Requires the MANAGE\_PRODUCTS permission.

```graphql
productMediaReorder(
  mediaIds: [ID!]!
  productId: ID!
): ProductMediaReorder
```

Details

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

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

### Arguments

<a id="media-ids"></a>

#### [`mediaIds`](#media-ids) ● [`[ID!]!`](/api-reference/miscellaneous/scalars/id.md)

IDs of a product media in the desired order.

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

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

ID of product that media order will be altered.

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

### Type

<a id="productmediareorder"></a>

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

Changes ordering of the product media.

Requires the MANAGE\_PRODUCTS permission.
