Skip to main content

ProductMediaCreate

Create a media object (image or video URL) associated with product. For image, this mutation must be sent as a multipart request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec

Requires MANAGE_PRODUCTSpermission.
type ProductMediaCreate {
product: Product
media: ProductMedia
productErrors: [ProductError!]! @deprecated
errors: [ProductError!]!
}

Fields

ProductMediaCreate.product ● Product object products

ProductMediaCreate.media ● ProductMedia object products

ProductMediaCreate.productErrors ● [ProductError!]! deprecated non-null object products

DEPRECATED

This field will be removed in Saleor 4.0. Use errors field instead.

ProductMediaCreate.errors ● [ProductError!]! non-null object products

Returned By

productMediaCreate mutation