Create a custom page
POST https://{handle}.myshopline.com/admin/openapi/v20260301/store/page/customize.json
handle : The store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name is open001.myshopline.com , the store handle is open001 .Create a custom page for the store.
Request Headers
- Content-Type string requiredThe field must be set to the fixed value
application/json; charset=utf-8. - Authorization string requiredThe access token for the API resource. Refer to App authorization to obtain the access token, and then pass the obtained token in the Bearer format.Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Request Body
reqobject required
Request parameters.author string requiredThe ID or name of the author for the custom page.Example:Alvinbody_html stringThe body content of the custom page, formatted in HTML.The file size must not exceed16MB.Example:<p>We love to hear from you.</p>handle string requiredA unique semantic identifier for the custom page.Example:contact-uspublished_at stringThe publication time of the custom page, which must not be earlier than the current time. If you schedule this page for future publication, specify this parameter and setpublished_statustofalse. Format:yyyy-MM-dd HH:mm:ss.SSS.Example:2023-09-11 16:49:35.120published_status booleanWhether to publish the custom page immediately.true: Publish immediately.false: Do not publish or schedule for future publication. To schedule publication, thepublished_atfield must be specified.
Default value:truetemplate_name stringThe name of the template used for the custom page.Example:templates/page.contact.jsontemplate_type integerThe template type used by the custom page. Valid values are:0: Default theme template.1: Public template, available for all themes.2: App-defined theme template, only effective for the current theme.
Default value:0title string requiredTitle of the custom page.Maximum length: 255Example:Contact usurl stringRelative path of the custom page URL. Refer to Customize your URL for details on URL customization.Maximum length: 512Example:/pages/contact_us
Status Codes
- 200
- 401
- 429
For the complete list of codes and messages, see Http status code.
Response Headers
traceId
A globally unique identifier for the request. It is used to track the request flow throughout the system, allowing for easy location and debugging when issues arise.
Response Body
dataobject
Custom page information.author stringThe ID or name of the author for the custom page.Example:Alvinbody_html stringThe body content of the custom page, formatted in HTML.Example:<p>We love to hear from you.</p>created_at stringCreation time of the custom page. Format:yyyy-MM-dd HH:mm:ss.SSS.Example:2023-09-11 16:49:35.000handle stringA unique semantic identifier for the custom page.Example:contact-usid stringThe unique ID of the custom page.Example:6743314731912662424published_at stringPublication time of the custom page. Format:yyyy-MM-dd HH:mm:ss.SSS.Example:2023-09-11 16:49:35.120published_status booleanWhether the custom page has been published.true: Already published.false: Not yet published.
store_id longThe unique ID of the store.Example:1730104825803template_name stringTemplate name used for the custom page.Example:templates/page.contact.jsontitle stringTitle of the custom page.Example:Contact usupdated_at stringUpdate time of the custom page. Format:yyyy-MM-dd HH:mm:ss.SSS.Example:2023-09-11 16:49:35.120- msg stringResponse information, including the reason for success or failure.
API Explorer
Debugger
Examples
Was this article helpful to you?