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

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

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 strings
  • complementaryarray of strings

ما يُرجعه

200 Both lists, with the new picks.

الأخطاء

  • 404not_foundNo such product.
  • 422validation_failedToo many, repeated, the product itself, in both lists, or unknown.