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_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.collection_idstringrequiredThe collection's ID, like
col_01k8qs5s….
Headers
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
product_idsarray of stringsrequiredAppended in this order; products already in the collection keep their place (1–250).
Returns
200 The collection after the change.
Errors
- 404
not_foundNo such collection. - 409Smart collections follow their rules.
- 422
validation_failedUnknown products or too many at once.