Either variantId or sku is required. The Asset to remove must be specified using either assetId or assetKey.

interface ProductRemoveAssetAction {
    action: "removeAsset";
    assetId?: string;
    assetKey?: string;
    sku?: string;
    staged?: boolean;
    variantId?: number;
}

Properties

action: "removeAsset"
assetId?: string

The id of the Asset to remove.

assetKey?: string

The key of the Asset to remove.

sku?: string

The sku of the ProductVariant to update.

staged?: boolean

If true, only the staged Asset is removed. If false, both the current and staged Asset is removed.

variantId?: number

The id of the ProductVariant to update.

Generated using TypeDoc