Skip to content
Saleor
Esc
↑↓navigate↵open⌘Jpreview

Schema: Saleor 3.23.43Download SDLUpgrade guides

On this page

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 one of the following permissions:MANAGE_PRODUCTS
productMediaCreate(input: ProductMediaCreateInput!): ProductMediaCreate

Returns

ProductMediaCreate

Show return type
type ProductMediaCreate {
  product: Product
  media: ProductMedia
  productErrors: [ProductError!]! @deprecated(reason: "Use `errors` field instead.")
  errors: [ProductError!]!
}

Arguments

input

input · ProductMediaCreateInput!

Fields required to create a product media.


Schema: Saleor 3.23.43. Download SDL.

Last updated on April 13, 2026

Was this page helpful?