Either variantId or sku is required.

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

Properties

action: "setAssetKey"
assetId: string

The id of the Asset to update.

assetKey?: string

Value to set. If empty, any existing value will be removed.

sku?: string

The sku of the ProductVariant to update.

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