Skip to content

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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

  • theme_idstringrequired

    The store theme's ID, like sthm_01k8qs5s….

  • save_idstringrequired

    Save ID

Headers

  • If-Matchstring · or null

    The theme's version

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Returns

200 Restored.

Errors

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