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

interface ProductSetAssetSourcesAction {
    action: "setAssetSources";
    assetId?: string;
    assetKey?: string;
    sku?: string;
    sources: AssetSource[];
    staged?: boolean;
    variantId?: number;
}

Properties

action: "setAssetSources"
assetId?: string

The id of the Asset to update.

assetKey?: string

The key of the Asset to update.

sku?: string

The sku of the ProductVariant to update.

sources: AssetSource[]

Value to set.

staged?: boolean

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

variantId?: number

The id of the ProductVariant to update.

Generated using TypeDoc