لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Put product recommendations
PUT
/ admin/ v1/ stores/ {store_id}/ products/ {product_id}/ recommendations- products:write
Replace the merchant's picks: up to ten related and ten complementary products, in order.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.product_idstringمطلوبمعرّف من نوع
prod، مثلprod_01k8qs5s….
الترويسات
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
relatedarray of stringscomplementaryarray of strings
ما يُرجعه
200 Both lists, with the new picks.
الأخطاء
- 404
not_foundNo such product. - 422
validation_failedToo many, repeated, the product itself, in both lists, or unknown.