Interface CreateSmartCollectionData

Data for creating a smart collection

interface CreateSmartCollectionData {
    body_html?: string;
    disjunctive?: boolean;
    image?: {
        alt?: string;
        src: string;
    };
    published?: boolean;
    rules: SmartCollectionRule[];
    template_suffix?: string;
    title: string;
}

Hierarchy

Properties

body_html?: string

Collection description in HTML format

disjunctive?: boolean

Whether all rules must match

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

Collection image

Type declaration

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

Whether to publish the collection

Collection rules

template_suffix?: string

Collection template suffix

title: string

Collection title