Skip to content

Page templates

21 operations are available in this resource for the current release. Select an operation to view its request metadata and integration examples.

MethodOperationDescriptionStatus
GETList Page Template Entries
/api/page-template-entries
Lists the page-template entries of a project owned by the authenticated user.Available
POSTCreate Page Template Entry
/api/page-template-entries
Creates a page-template entry for a project owned by the authenticated user, resolving and storing its variable values.Available
DELETEDelete Page Template Entry
/api/page-template-entries/{id}
Deletes a page-template entry owned by the authenticated user along with its stored values.Available
GETGet Page Template Entry
/api/page-template-entries/{id}
Returns one page-template entry owned by the authenticated user.Available
PUTUpdate Page Template Entry
/api/page-template-entries/{id}
Updates a page-template entry owned by the authenticated user and returns the updated entry.Available
GETPreview Page Template Entry
/api/page-template-entries/{id}/preview
Renders a draft preview of a page-template entry owned by the authenticated user.Available
DELETEDelete Page Template Variable
/api/page-template-variables/{id}
Deletes a page-template variable owned by the authenticated user and its stored entry values.Available
PUTUpdate Page Template Variable
/api/page-template-variables/{id}
Updates a page-template variable owned by the authenticated user.Available
GETList Page Templates
/api/page-templates
Lists the page templates of a project owned by the authenticated user, including each template's variables and saved draft.Available
POSTCreate Page Template
/api/page-templates
Creates a page template in a project owned by the authenticated user and returns the created template.Available
DELETEDelete Page Template
/api/page-templates/{id}
Deletes a page template owned by the authenticated user along with its variables and entries.Available
GETGet Page Template
/api/page-templates/{id}
Returns one page template owned by the authenticated user.Available
PUTUpdate Page Template
/api/page-templates/{id}
Updates a page template owned by the authenticated user and returns the updated template.Available
POSTCreate Archive
/api/page-templates/{id}/archive
Archives a page template so it is no longer rendered on the storefront.Available
PUTUpdate Draft
/api/page-templates/{id}/draft
Saves the supplied snapshot as the editable draft of a page template without changing the published version.Available
POSTCreate Publish
/api/page-templates/{id}/publish
Publishes the supplied snapshot as the live version of a page template, creating or updating its variables.Available
GETList Thumbnail.webp
/api/page-templates/{id}/thumbnail.webp
Returns the newest preview entry of a page template as a WebP thumbnail image.Available
GETList Page Template Variables
/api/page-templates/{id}/variables
Lists the variables configured on a page template owned by the authenticated user.Available
POSTCreate Page Template Variable
/api/page-templates/{id}/variables
Adds a variable to a page template owned by the authenticated user.Available
POSTPreview Page Template
/api/page-templates/preview
Renders the supplied page-template draft with resolved variable values and returns the preview HTML, root JSON, and rendered document.Available
POSTCreate Preview Css
/api/page-templates/preview-css
Renders the supplied page-template draft through the preview service and returns the generated CSS stylesheet.Available