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

•mutation
Deprecated

Arguments

•[CreateMediaInput!]!
required

List of new media to be added to a product.

•ID!
required

Specifies the product associated with the media.


Fields

•[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
•mutation
Deprecated

Arguments

•[ID!]!
required

The media IDs to be deleted.

•ID!
required

Specifies the product ID from which the media will be deleted.


Fields

•[ID!]

List of media IDs which were deleted.

Anchor to deletedProductImageIdsdeletedProductImageIds
•[ID!]

List of product image IDs which were deleted.

•[MediaUserError!]!
non-null

The list of errors that occurred from executing the mutation.

•Product

The product associated with the deleted media.

•[UserError!]!
non-nullDeprecated
•mutation
Deprecated

Arguments

•[UpdateMediaInput!]!
required

A list of media updates.

•ID!
required

Specifies the product on which media will be updated.


Fields

•[Media!]

The updated media object.

•[MediaUserError!]!
non-null

The list of errors that occurred from executing the mutation.

•Product

The product on which media was updated.

•[UserError!]!
non-nullDeprecated

Was this section helpful?


Was this section helpful?
OSZAR »