interface ProductAddVariantAction {
    action: "addVariant";
    assets?: AssetDraft[];
    attributes?: Attribute[];
    images?: Image[];
    key?: string;
    prices?: PriceDraft[];
    sku?: string;
    staged?: boolean;
}

Properties

action: "addVariant"
assets?: AssetDraft[]

Media assets for the Product Variant.

attributes?: Attribute[]

Attributes for the Product Variant.

images?: Image[]

Images for the Product Variant.

key?: string

Value to set. Must be unique.

prices?: PriceDraft[]

Embedded Prices for the Product Variant.

sku?: string

Value to set. Must be unique.

staged?: boolean

If true the new Product Variant is only staged. If false the new Product Variant is both current and staged.

Generated using TypeDoc