Either variantId or sku is required to reference a ProductVariant that exists. Produces the ProductTailoringImagesSet Message.

interface ProductTailoringSetExternalImagesAction {
    action: "setImages";
    images?: Image[];
    sku?: string;
    staged?: boolean;
    variantId?: number;
}

Hierarchy (View Summary)

Properties

action: "setImages"
images?: Image[]

Images of the tailored ProductVariant.

Don't provide this field if you want to remove all images from the tailored Product Variant.
Set to `[]` (empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.
sku?: string

The sku of the tailored ProductVariant to update.

staged?: boolean

If true, only the staged images is updated. If false, both the current and staged images is updated.

variantId?: number

The id of the tailored ProductVariant to update.