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

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

Restore theme save

POST/admin/v1/stores/{store_id}/online-store/themes/{theme_id}/history/{save_id}/restore
  • يدعم Idempotency-Key

Bring a save back: its content becomes the theme's, as a new save that can be undone in turn. Send the theme's version as If-Match; a stale version is refused with 409.

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

  • store_idstringمطلوب

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

  • theme_idstringمطلوب

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

  • save_idstringمطلوب

    Save ID

الترويسات

  • If-Matchstring · أو null

    The theme's version

  • Idempotency-Keystring

    أرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.

  • shop-api-versionYYYY-MM

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

ما يُرجعه

200 Restored.

الأخطاء

  • 404not_foundNo such theme or save.
  • 409Saved by someone else (version_conflict).
  • 422validation_failedThe save no longer fits the theme.