لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Reorder collection products
POST
/ admin/ v1/ stores/ {store_id}/ collections/ {collection_id}/ products/ reorder- products:write
- يدعم Idempotency-Key
Move products of a manual collection to new positions.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.collection_idstringمطلوبمعرّف من نوع
col، مثلcol_01k8qs5s….
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
movesarray of objectsمطلوبApplied in order, like dragging products one after another (1–250).
ما يُرجعه
200 The collection after the change.
الأخطاء
- 404
not_foundNo such collection. - 409Smart collections follow their rules.
- 422
validation_failedA product is not in the collection.