Interface CreatePageData

Data for creating a page

interface CreatePageData {
    author?: string;
    body_html?: string;
    handle?: string;
    metafields?: {
        key: string;
        namespace: string;
        value: string;
        value_type: string;
    }[];
    published?: boolean;
    template_suffix?: PageTemplate;
    title: string;
}

Properties

author?: string

Author of the page

body_html?: string

Body content in HTML

handle?: string

Handle for the page URL (auto-generated if not provided)

metafields?: {
    key: string;
    namespace: string;
    value: string;
    value_type: string;
}[]

Metafields to set on the page

Type declaration

  • key: string
  • namespace: string
  • value: string
  • value_type: string
published?: boolean

Whether to publish the page

template_suffix?: PageTemplate

Template to use

title: string

Page title