Either variantId or sku is required.

interface ProductChangeAssetOrderAction {
    action: "changeAssetOrder";
    assetOrder: string[];
    sku?: string;
    staged?: boolean;
    variantId?: number;
}

Properties

action: "changeAssetOrder"
assetOrder: string[]

All existing Asset ids of the ProductVariant in the desired new order.

sku?: string

The sku of the ProductVariant to update.

staged?: boolean

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

variantId?: number

The id of the ProductVariant to update.

Generated using TypeDoc