Save the page template draft

Saves the draft. Creates the page template on the first save (201). Saving does not change
the live page; publish the draft for that. Fields you omit keep their current value.

The draft is validated: Liquid syntax, the required top-level {% store_buttons %} tag, the
allowed HTML and CSS, the page's Content Security Policy, and the size limits (body 65,536
bytes, CSS 32,768 bytes). Problems are returned with the field and line they are on.

Saving, publishing and previewing share a limit of 60 requests per minute per API key.

Requirements: a Pro plan, page templates enabled for the project, and an API key of a project
owner or manager with the page_templates.update scope.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string

Liquid and HTML for the page body, at most 65,536 bytes (UTF-8, so fewer characters if you
use non-ASCII text). Must include {% store_buttons %} at the top level. Omit to keep the
current value; send an empty string to clear it. null is rejected.

string

Plain CSS for the page, at most 32,768 bytes. Omit to keep the current value; send an empty
string to clear it. null is rejected.

Responses

401

Unauthorized, or the project can't use page templates

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json