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

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

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.

الأخطاء

  • 404not_foundNo such collection.
  • 409Smart collections follow their rules.
  • 422validation_failedA product is not in the collection.