Skip to main content

ProductImageAddInput

An image the app staged (purpose PRODUCT_IMAGE), added to the end of a product's or a variant's gallery.

input ProductImageAddInput {
productId: ID!
stagedUploadKey: String!
variantId: ID
}

Fields​

ProductImageAddInput.productId ● ID! non-null scalar​

The product the image is for.

ProductImageAddInput.stagedUploadKey ● String! non-null scalar​

The staged key of the uploaded image. URLs are not accepted.

ProductImageAddInput.variantId ● ID scalar​

A variant of that product. Empty adds the image to the product's own gallery.

Member Of​

productImageAdd mutation