Either variantId or sku is required.

interface ProductMoveImageToPositionAction {
    action: "moveImageToPosition";
    imageUrl: string;
    position: number;
    sku?: string;
    staged?: boolean;
    variantId?: number;
}

Properties

action: "moveImageToPosition"
imageUrl: string

The URL of the image to update.

position: number

Position in images where the image should be moved. Must be between 0 and the total number of images minus 1.

sku?: string

The sku of the ProductVariant to update.

staged?: boolean

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

variantId?: number

The id of the ProductVariant to update.

Generated using TypeDoc