Skip to main content
Anchor to CollectionReorderToPositionInput

CollectionReorderToPositionInput

input_object

The input fields for moving a block of products to one place in the collection.

The block keeps the order of productIds. Products that the request doesn't list keep their relative order around the block. Products that aren't in the collection are skipped.

•CollectionReorderTargetInput!
required

The place where the block goes.

Show input fields
•[ID!]!
non-null

The IDs of the products in the block, in the order they display. Up to 1,000 products are supported; a longer list fails the request with a top-level error. A product that is listed more than once returns DUPLICATE_PRODUCT.


Was this section helpful?

Anchor to Input objects using this inputInput objects using this input

•INPUT OBJECT

The input fields for a declarative reorder: the request says where products end up, not how to move them one at a time. Specify exactly one of toPosition or toIndexes.

The reorder is resolved against the collection's order when the job runs.


Was this section helpful?