Skip to main content

ProductMediaCreate Object

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 the MANAGE_PRODUCTSpermission.
type ProductMediaCreate {
product: Product
media: ProductMedia
productErrors: [ProductError!]! @deprecated
errors: [ProductError!]!
}

Fields​

product ● Product​

media ● ProductMedia​

errors ● [ProductError!]!​

Show deprecatedHide deprecated

productErrors ● [ProductError!]!​

DEPRECATED

Use errors field instead.

Returned By​

productMediaCreate mutation