Skip to main content
Log inSign up
Anchor to collectionReorderProducts

collectionReorderProducts

mutation

Requires write_products access scope. Also: The user must have a permission to reorder products within a collection.

Asynchronously reorders a set of products within a specified collection. Instead of returning an updated collection, this mutation returns a job, which should be polled. The Collection.sortOrder must be MANUAL. Displaced products will have their position altered in a consistent manner, with no gaps.

•
ID!required

The ID of the collection on which to reorder products.

•

A list of moves to perform, which will be evaluated in order. Up to 250 moves are supported, the newPosition does not have to be unique.


Was this section helpful?

Anchor to CollectionReorderProductsPayload returnsCollectionReorderProductsPayload returns

•

The asynchronous job reordering the products.

•

The list of errors that occurred from executing the mutation.


Was this section helpful?