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

    Interface ProductSelectionSetVariantSelectionAction

    Updates the Product Variant Selection of an existing Product Selection Assignment. A ProductVariantSelection can only be set if the Product has already been included in the Product Selection with Individual ProductSelectionMode.

    If the specified Product is not assigned to the Product Selection, a [ProductAssignmentMissing](ctp:api:type:ProductAssignmentMissingError) error is returned.
    
    interface ProductSelectionSetVariantSelectionAction {
        action: "setVariantSelection";
        product: ProductResourceIdentifier;
        variantSelection?: ProductVariantSelection;
    }

    Hierarchy (View Summary)

    Index

    Properties

    action: "setVariantSelection"

    ResourceIdentifier of the Product

    variantSelection?: ProductVariantSelection

    Determines which Variants of the previously added Product are to be included in, or excluded from, the Product Selection. Leave it empty to unset an existing Variant Selection.