Interface CreateCollectionData

Data for creating a custom collection

interface CreateCollectionData {
    body_html?: string;
    image?: {
        alt?: string;
        src: string;
    };
    published?: boolean;
    sort_order?: CollectionSortOrder;
    template_suffix?: string;
    title: string;
}

Properties

body_html?: string

Collection description in HTML format

image?: {
    alt?: string;
    src: string;
}

Collection image

Type declaration

  • Optional alt?: string
  • src: string
published?: boolean

Whether to publish the collection

sort_order?: CollectionSortOrder

Collection sort order

template_suffix?: string

Collection template suffix

title: string

Collection title