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

    Interface ProductTailoringAddAssetAction

    Either variantId or sku is required to reference a ProductVariant or Variant (BETA) that exists.

    interface ProductTailoringAddAssetAction {
        action: "addAsset";
        asset: AssetDraft;
        position?: number;
        sku?: string;
        staged?: boolean;
        variantId?: number;
    }

    Hierarchy (View Summary)

    Index
    action: "addAsset"
    asset: AssetDraft

    Value to append.

    position?: number

    Position in assets where the Asset should be put. When specified, the value must be between 0 and the total number of Assets minus 1.

    sku?: string

    The sku of the tailored ProductVariant or Variant (BETA) to update.

    staged?: boolean

    Whether only the staged assets are updated. If false, both the current and staged assets are updated.

    variantId?: number

    The id of the tailored ProductVariant or Variant (BETA) to update.