لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Add collection products
POST
/ admin/ v1/ stores/ {store_id}/ collections/ {collection_id}/ products- products:write
- يدعم Idempotency-Key
Add products to a manual collection (appended in order).
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.collection_idstringمطلوبمعرّف من نوع
col، مثلcol_01k8qs5s….
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
product_idsarray of stringsمطلوبAppended in this order; products already in the collection keep their place (1–250).
ما يُرجعه
200 The collection after the change.
الأخطاء
- 404
not_foundNo such collection. - 409Smart collections follow their rules.
- 422
validation_failedUnknown products or too many at once.