انتقل إلى المحتوى

لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.

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.

الأخطاء

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