Skip to content

Add collection products

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

Add products to a manual collection (appended in order).

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

  • product_idsarray of stringsrequired

    Appended in this order; products already in the collection keep their place (1–250).

Returns

200 The collection after the change.

Errors

  • 404not_foundNo such collection.
  • 409Smart collections follow their rules.
  • 422validation_failedUnknown products or too many at once.