Media User Error
Represents an error that happens during execution of a Media query or mutation.
Anchor to FieldsFields
- Anchor to codecode•Media
User Error Code The error code.
- Anchor to fieldfield•[String!]
The path to the input field that caused the error.
- Anchor to messagemessage•String!non-null
The error message.
Anchor to MutationsMutations
- •mutation
Asynchronously reorders the media attached to a product.
- •ID!required
The ID of the product on which to reorder medias.
- Anchor to movesmoves•[Move
Input!]! required A list of moves to perform which will be evaluated in order.
Arguments
- •Job
The asynchronous job which reorders the media.
- Anchor to mediaUserErrorsmedia•[Media
User Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
- Anchor to userErrorsuser•[User
Errors Error!]! non-nullDeprecated
Fields
- •ID!
- •mutation
Appends media from a product to variants of the product.
- Anchor to productIdproduct•ID!
Id required Specifies the product associated to the media.
- Anchor to variantMediavariant•[Product
Media Variant Append Media Input!]! required A list of pairs of variants and media to be attached to the variants.
Arguments
- Anchor to productproduct•Product
The product associated with the variants and media.
- Anchor to productVariantsproduct•[Product
Variants Variant!] The product variants that were updated.
- Anchor to userErrorsuser•[Media
Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Detaches media from product variants.
- Anchor to productIdproduct•ID!
Id required Specifies the product to which the variants and media are associated.
- Anchor to variantMediavariant•[Product
Media Variant Detach Media Input!]! required A list of pairs of variants and media to be deleted from the variants.
Arguments
- Anchor to productproduct•Product
The product associated with the variants and media.
- Anchor to productVariantsproduct•[Product
Variants Variant!] The product variants that were updated.
- Anchor to userErrorsuser•[Media
Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
Fields
Deprecated mutations
- •mutationDeprecated
- Anchor to mediamedia•[Create
Media Input!]! required List of new media to be added to a product.
- Anchor to productIdproduct•ID!
Id required Specifies the product associated with the media.
Arguments
- Anchor to mediamedia•[Media!]
The newly created media.
- Anchor to mediaUserErrorsmedia•[Media
User Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
- Anchor to productproduct•Product
The product associated with the media.
- Anchor to userErrorsuser•[User
Errors Error!]! non-nullDeprecated
Fields
- •mutationDeprecated
- Anchor to mediaIdsmedia•[ID!]!
Ids required The media IDs to be deleted.
- Anchor to productIdproduct•ID!
Id required Specifies the product ID from which the media will be deleted.
Arguments
- Anchor to deletedMediaIdsdeleted•[ID!]
Media Ids List of media IDs which were deleted.
- Anchor to deletedProductImageIdsdeleted•[ID!]
Product Image Ids List of product image IDs which were deleted.
- Anchor to mediaUserErrorsmedia•[Media
User Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
- Anchor to productproduct•Product
The product associated with the deleted media.
- Anchor to userErrorsuser•[User
Errors Error!]! non-nullDeprecated
Fields
- •mutationDeprecated
- Anchor to mediamedia•[Update
Media Input!]! required A list of media updates.
- Anchor to productIdproduct•ID!
Id required Specifies the product on which media will be updated.
Arguments
- Anchor to mediamedia•[Media!]
The updated media object.
- Anchor to mediaUserErrorsmedia•[Media
User Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
- Anchor to productproduct•Product
The product on which media was updated.
- Anchor to userErrorsuser•[User
Errors Error!]! non-nullDeprecated
Fields