Create a page
POST
/ admin/ v1/ stores/ {store_id}/ online-store/ pages- content:write
- Idempotency-Key supported
Create a page; its HTML is sanitized.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Headers
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
titlestringrequiredpublishedbooleanrequiredhandlestringDerived from the title when empty.
body_htmlstringseo_titlestring · or nullseo_descriptionstring · or nulltemplate_suffixstring · or nullpublished_attimestamp · or nullWhen a published page appears on the storefront (RFC 3339): later schedules it (at most 2 years ahead), earlier backdates it. Omitted: now when first published, else unchanged. Needs
published: true.
Returns
201 Created.
Errors
- 409Handle taken, or 500 pages already.
- 422
validation_failedValidation failed.