Skip to main content
Anchor to CollectionReorderIndexedProductInput

CollectionReorderIndexedProductInput

input_object

The input fields for the final index of one product in the collection.

•Int!
non-null

The zero-based index of the product after the reorder. An index past the end of the list puts the product at the bottom. A negative index returns INVALID_POSITION.

•ID!
non-null

The ID of the product. A product that isn't in the collection is skipped.


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?