Skip to main content

collectionReorderProducts Mutation

Reorder the products of a collection.

Requires the MANAGE_PRODUCTSpermission.
collectionReorderProducts(
collectionId: ID!
moves: [MoveProductInput!]!
): CollectionReorderProducts
Details
type CollectionReorderProducts {
collection: Collection
collectionErrors: [CollectionError!]! @deprecated
errors: [CollectionError!]!
}

Arguments​

collectionId ● ID!​

ID of a collection.

moves ● [MoveProductInput!]!​

The collection products position operations.

Type​

CollectionReorderProducts​

Reorder the products of a collection.

Requires the MANAGE_PRODUCTSpermission.