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

    Interface VariantDraft

    Draft for creating a new Variant. When a Variant is created, only the current version is set. The staged version is only set when the Variant is updated with different current and staged data.

    interface VariantDraft {
        assets?: AssetDraft[];
        attributes?: Attribute[];
        images?: Image[];
        key?: string;
        product: ProductResourceIdentifier;
        publish?: boolean;
        sku?: string;
    }
    Index
    assets?: AssetDraft[]

    Media assets for the Variant.

    attributes?: Attribute[]

    Variant Attributes according to the respective AttributeDefinition.

    images?: Image[]

    Images for the Variant.

    key?: string

    User-defined unique identifier for the Variant. This field is optional, but we strongly recommend setting it.

    ResourceIdentifier of the Product the Variant belongs to.

    publish?: boolean

    Indicates whether the Variant is published. If true, the Variant will be immediately available in the current published state.

    sku?: string

    User-defined unique SKU of the Variant.