Skip to content
Saleor
Esc
↑↓navigate↵open⌘Jpreview

Schema: Saleor 3.23.43Download SDLUpgrade guides

On this page

productMediaReorder Mutation

Changes ordering of the product media.

Requires one of the following permissions:MANAGE_PRODUCTS
productMediaReorder(mediaIds: [ID!]!, productId: ID!): ProductMediaReorder

Returns

ProductMediaReorder

Show return type
type ProductMediaReorder {
  product: Product
  media: [ProductMedia!]
  productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.")
  errors: [ProductError!]!
}

Arguments

mediaIds

mediaIds · [ID!]!

IDs of a product media in the desired order.

productId

productId · ID!

ID of product that media order will be altered.


Schema: Saleor 3.23.43. Download SDL.

Last updated on April 13, 2026

Was this page helpful?