Interface ProductSelectionSetVariantExclusionAction

Updates the Product Variant Exclusion of an existing Product Selection Assignment. A ProductVariantExclusion can only be set if the Product has already been excluded from the Product Selection with IndividualExclusion ProductSelectionMode.

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

Properties

action: "setVariantExclusion"

ResourceIdentifier of the Product

variantExclusion?: ProductVariantExclusion

Determines which Variants of the previously excluded Product are to be included in the Product Selection with IndividualExclusion ProductSelectionMode. Leave it empty to unset an existing Variant Exclusion.