Restore theme save
POST
/ admin/ v1/ stores/ {store_id}/ online-store/ themes/ {theme_id}/ history/ {save_id}/ restore- Idempotency-Key supported
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.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.theme_idstringrequiredThe store theme's ID, like
sthm_01k8qs5s….save_idstringrequiredSave ID
Headers
If-Matchstring · or nullThe theme's version
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Returns
200 Restored.
Errors
- 404
not_foundNo such theme or save. - 409Saved by someone else (
version_conflict). - 422
validation_failedThe save no longer fits the theme.