Skip to content

Reorder collection products

POST/admin/v1/stores/{store_id}/collections/{collection_id}/products/reorder
  • products:write
  • Idempotency-Key supported

Move products of a manual collection to new positions.

Path parameters

  • store_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

  • collection_idstringrequired

    The collection's ID, like col_01k8qs5s….

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • movesarray of objectsrequired

    Applied in order, like dragging products one after another (1–250).

Returns

200 The collection after the change.

Errors

  • 404not_foundNo such collection.
  • 409Smart collections follow their rules.
  • 422validation_failedA product is not in the collection.