Make an uploaded file editable
Turns an uploaded public/ CSS or JS file into an editable template at the same path, if it is valid
UTF-8 and at most 65,535 bytes. Its URL does not change.
/themes/{theme_id}/files/editableAuthorizationBearer token (JWT) · headerrequiredtheme_idstringrequiredapplication/jsonpathstringrequiredThe new template
_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.
Unauthorized
Access denied
No uploaded file at that path, or it can't be a template (type, size or encoding)