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

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

Save the editor's content

PUT/admin/v1/stores/{store_id}/online-store/themes/{theme_id}/content
  • themes:manage

Save the editor's content. Send the theme's version as If-Match; a stale version is refused with 409. Content that doesn't fit the theme is refused with 422 and the paths of the problems.

معاملات المسار

  • store_idstringمطلوب

    معرّف من نوع store، مثل store_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.

  • theme_idstringمطلوب

    معرّف من نوع sthm، مثل sthm_01k8qs5s….

الترويسات

  • If-Matchstring · أو null

    The theme's version

  • shop-api-versionYYYY-MM

    الإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.

الجسم

  • contentobjectمطلوب

    settings, templates and groups.

ما يُرجعه

200 Saved.

الأخطاء

  • 404not_foundNo such theme.
  • 409Saved by someone else (version_conflict).
  • 422validation_failedThe content doesn't fit the theme.