Skip to main content

productMediaReorder Mutation

Changes ordering of the product media.

Requires the MANAGE_PRODUCTSpermission.
productMediaReorder(
mediaIds: [ID!]!
productId: ID!
): ProductMediaReorder
Details
type ProductMediaReorder {
product: Product
media: [ProductMedia!]
productErrors: [ProductError!]! @deprecated
errors: [ProductError!]!
}

Arguments​

mediaIds ● [ID!]!​

IDs of a product media in the desired order.

productId ● ID!​

ID of product that media order will be altered.

Type​

ProductMediaReorder​

Changes ordering of the product media.

Requires the MANAGE_PRODUCTSpermission.