Either variantId or sku is required.

interface ProductSetImageLabelAction {
    action: "setImageLabel";
    imageUrl: string;
    label?: string;
    sku?: string;
    staged?: boolean;
    variantId?: number;
}

Properties

action: "setImageLabel"
imageUrl: string

The URL of the image to set the label.

label?: string

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

sku?: string

The sku of the ProductVariant to update.

staged?: boolean

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

variantId?: number

The id of the ProductVariant to update.

Generated using TypeDoc