لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Update home template
PUT
/ admin/ v1/ stores/ {store_id}/ online-store/ home-template- themes:manage
Choose the template the home page shows: an index alternate of the theme, such as a landing page for one product, or null for the usual one. The storefront follows at once.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.
الترويسات
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
templatestring · أو nullThe suffix of an
indexalternate of the theme (landingforindex.landing);nullshowsindex. A theme without that alternate showsindex.
ما يُرجعه
200 Saved.
الأخطاء
- 403
forbiddenMissing permission. - 422
validation_failedNot a template's name.