Restore a template version
Puts the version’s body back into the template. The current body is saved as a version first (labelled “before restore to …”), so a restore can itself be undone.
/themes/{theme_id}/templates/{template_id}/versions/{id}/restoreAuthorizationBearer token (JWT) · headerrequiredtheme_idstringrequiredtemplate_idstringrequiredidstringrequiredThe template, with the restored body
_linksHalLinksidstringfile_namestringpathstringbodystringFull template source code
is_sectionbooleanschemaobjectPresent only when is_section is true — the section's configurable schema.
parent_commitstring | nullupdated_onstring<date-time>warningsobject[]Problems of the template the storefront would only show when the page renders, for an editor to show right
after saving. They never block saving. Present when a single template is returned (not in the templates listed
with a theme). Checked: Liquid syntax (with the storefront's own tags), a layout without
{% bolder_header %} / {% bolder_footer %}, literal asset_url files the theme does not have, and literal include / include_partial templates it does not have.
Show propertiesHide properties
objectseveritystringerrorwarningcodestringsyntaxlayout_headerlayout_footermissing_assetmissing_includemessagestringlineintegerLine of the template, when known.
Access denied
Version not found for that template