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

    Interface ProductChangeMasterVariantAction

    Assigns the specified Product Variant to the masterVariant and removes the same from variants at the same time. The current Master Variant becomes part of the variants array. Either variantId or sku is required.

    interface ProductChangeMasterVariantAction {
        action: "changeMasterVariant";
        sku?: string;
        staged?: boolean;
        variantId?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    action: "changeMasterVariant"
    sku?: string

    The sku of the ProductVariant to become the Master Variant.

    staged?: boolean

    If true, only the staged Master Variant is changed. If false, both the current and staged Master Variant are changed.

    variantId?: number

    The id of the ProductVariant to become the Master Variant.