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

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

Save theme file

PUT/admin/v1/stores/{store_id}/online-store/themes/{theme_id}/code/file
  • themes:code

Saves a file, after checking the whole theme with it in.

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

  • store_idstringمطلوب

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

  • theme_idstringمطلوب

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

الترويسات

  • shop-api-versionYYYY-MM

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

الجسم

  • pathstringمطلوب
  • contentstringمطلوب
  • versionintegerمطلوب

    The version read; 0 for one never edited here.

ما يُرجعه

200 Saved.

الأخطاء

  • 403forbiddenMissing permission.
  • 404not_foundNo such theme.
  • 412precondition_failedIt changed since it was read.
  • 422validation_failedIt doesn't pass the theme check.