We're constantly trying to improve your support experience, and your feedback is extremely valuable to us.

Please take a moment to tell us about your experience today.
Sign up for future Help Center user research studies.

productCreateMedia

Version unstable

Creates media for a product.

Required access

write_products access scope

Interactive Example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

media ( [CreateMediaInput!]! ) required

List of new media to be added to a product.

productId ( ID! ) required

Specifies the product associated to the media.

CreateMediaInput Fields

alt (String)

The alt text associated to the media.

mediaContentType (MediaContentType!) Required

The media content type.

originalSource (String!) Required

The original source of the media object. May be an external URL or signed upload URL.

Return Fields

media ([Media!])

The newly created media.

product (Product)

The product associated with the media.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.

Sign up for a Partner account to get started.

Sign up