Skip to content

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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • titlestringrequired
  • publishedbooleanrequired
  • handlestring

    Derived from the title when empty.

  • body_htmlstring
  • seo_titlestring · or null
  • seo_descriptionstring · or null
  • template_suffixstring · or null
  • published_attimestamp · or null

    When 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.
  • 422validation_failedValidation failed.