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

    Interface ProductSetDefaultVariantAction

    Sets the defaultVariant of the Product. Only available for Projects with productCatalogModel set to Modular. The Variant must belong to the Product. If variant is omitted, any existing default Variant is cleared.

    interface ProductSetDefaultVariantAction {
        action: "setDefaultVariant";
        staged?: boolean;
        variant?: VariantResourceIdentifier;
    }

    Hierarchy (View Summary)

    Index
    action: "setDefaultVariant"
    staged?: boolean

    Whether only the staged defaultVariant is updated. If false, both the current and staged defaultVariant are updated.

    The Variant to set as default. If empty, any existing value will be removed.