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

    Interface ProductTailoringAddVariantAction

    Either id or sku is required to reference a ProductVariant that exists. Produces the ProductVariantTailoringAdded Message.

    interface ProductTailoringAddVariantAction {
        action: "addVariant";
        assets?: AssetDraft[];
        attributes?: ProductTailoringAttribute[];
        id?: number;
        images?: Image[];
        sku?: string;
        staged?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    action: "addVariant"
    assets?: AssetDraft[]

    Media assets for the Product Variant Tailoring.

    Attributes for the Product Variant Tailoring.

    id?: number

    The id of the tailored ProductVariant to update.

    images?: Image[]

    Images for the Product Variant Tailoring.

    sku?: string

    The sku of the tailored ProductVariant to update.

    staged?: boolean

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