Skip to main content
object

Represents an error that happens during execution of a Media query or mutation.

•MediaUserErrorCode

The error code.

•[String!]

The path to the input field that caused the error.

•String!non-null

The error message.


Was this section helpful?

•mutation

Asynchronously reorders the media attached to a product.

Arguments

•ID!required

The ID of the product on which to reorder medias.

•[MoveInput!]!required

A list of moves to perform which will be evaluated in order.


Fields

•Job

The asynchronous job which reorders the media.

•[MediaUserError!]!non-null

The list of errors that occurred from executing the mutation.

•[UserError!]!non-nullDeprecated
•mutation

Appends media from a product to variants of the product.

Arguments

•ID!required

Specifies the product associated to the media.

•[ProductVariantAppendMediaInput!]!required

A list of pairs of variants and media to be attached to the variants.


Fields

•Product

The product associated with the variants and media.

•[ProductVariant!]

The product variants that were updated.

•[MediaUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Detaches media from product variants.

Arguments

•ID!required

Specifies the product to which the variants and media are associated.

•[ProductVariantDetachMediaInput!]!required

A list of pairs of variants and media to be deleted from the variants.


Fields

•Product

The product associated with the variants and media.

•[ProductVariant!]

The product variants that were updated.

•[MediaUserError!]!non-null

The list of errors that occurred from executing the mutation.

Deprecated mutations


Was this section helpful?


Was this section helpful?