Skip to main content

UploadProductImageInput

type productImage {
variantIds: string[],
order: number,
isMain?: boolean == false,
url?: string,
base64?: string
}

Fields

variantIds[string!]!required

Id list of the variant to upload the image. If more than one variant id is entered, the uploaded image will be added to all variants.

ordernumber

Order of the uploading image.

isMainboolean

Whether the uploading image is the main image or not.

Url of the uploading image.If this value is entered, it is not necessary to enter base64.

base64string

Base64 string of the uploading image.If this value is entered, it is not necessary to enter url.