Skip to main content

productMediaCreate Mutation

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.
productMediaCreate(
input: ProductMediaCreateInput!
): ProductMediaCreate

Arguments

productMediaCreate.input ● ProductMediaCreateInput! non-null input products

Fields required to create a product media.

Type

ProductMediaCreate object products

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.