@gradientedge/commercetools-utils
    Preparing search index...

    Interface CategoryDraft

    interface CategoryDraft {
        assets?: AssetDraft[];
        custom?: CustomFieldsDraft;
        description?: LocalizedString;
        externalId?: string;
        key?: string;
        metaDescription?: LocalizedString;
        metaKeywords?: LocalizedString;
        metaTitle?: LocalizedString;
        name: LocalizedString;
        orderHint?: string;
        parent?: CategoryResourceIdentifier;
        slug: LocalizedString;
    }
    Index

    Properties

    assets?: AssetDraft[]

    Media related to the Category.

    Custom Fields for the Category.

    description?: LocalizedString

    Description of the Category.

    externalId?: string

    Additional identifier for external systems like customer relationship management (CRM) or enterprise resource planning (ERP).

    key?: string

    User-defined unique identifier for the Category.

    This field is optional for backwards compatibility reasons, but we strongly recommend setting it. Keys are mandatory for importing Categories with the [Import API](/../api/import-export/overview) and the [Merchant Center](/../merchant-center/import-data).
    
    metaDescription?: LocalizedString

    Description of the Category used by external search engines for improved search engine performance.

    metaKeywords?: LocalizedString

    Keywords related to the Category for improved search engine performance.

    metaTitle?: LocalizedString

    Name of the Category used by external search engines for improved search engine performance.

    Name of the Category.

    orderHint?: string

    Decimal value between 0 and 1. Frontend applications can use this value for ordering Categories within the same level in the category tree. If not set, a random value will be assigned.

    Parent Category of the Category. The parent can be set by its id or key.

    User-defined identifier used as a deep-link URL to the related Category. A Category can have the same slug for different Locales, but it must be unique across the Project. Valid slugs must match the pattern ^[A-Za-z0-9_-]{2,256}+$.