Anchor to section titled 'undefined'

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.


Anchor to id
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?

The asynchronous job reordering the products.

The list of errors that occurred from executing the mutation.


Was this section helpful?