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

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

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 · أو null

    The suffix of an index alternate of the theme (landing for index.landing); null shows index. A theme without that alternate shows index.

ما يُرجعه

200 Saved.

الأخطاء

  • 403forbiddenMissing permission.
  • 422validation_failedNot a template's name.