Skip to main content
mutation

Requires write_products access scope. Also: The user must have a permission to create media for a product.

Deprecated. Use productUpdate or productSet instead.

Creates media for a product.

•[CreateMediaInput!]!required

List of new media to be added to a product.

•ID!required

Specifies the product associated with the media.


Was this section helpful?

Anchor to ProductCreateMediaPayload returnsProductCreateMediaPayload returns

•[Media!]

The newly created media.

•[MediaUserError!]!non-null

The list of errors that occurred from executing the mutation.

•Product

The product associated with the media.

•[UserError!]!non-nullDeprecated

The list of errors that occurred from executing the mutation.


Was this section helpful?