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

    Interface ProductSetProductVariantKeyAction

    Either variantId or sku is required.

    interface ProductSetProductVariantKeyAction {
        action: "setProductVariantKey";
        key?: string;
        sku?: string;
        staged?: boolean;
        variantId?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    action: "setProductVariantKey"
    key?: string

    Value to set. Must be unique. If empty, any existing value will be removed.

    sku?: string

    The sku of the ProductVariant to update.

    staged?: boolean

    If true, only the staged key is set. If false, both the current and staged key are set.

    variantId?: number

    The id of the ProductVariant to update.