Magidoc

productImageUpdate
Mutation

Updates a product image.

Arguments

#

id

ID !
Non-null

ID of a product image to update.

input

Non-null

Fields required to update a product image.

Response

#

Returns ProductImageUpdate .

Example

#

    mutation ($id: ID!, $input: ProductImageUpdateInput!, $size: Int) {
  productImageUpdate(id: $id, input: $input) {
    product {
      id
      publicationDate
      description
      descriptionHtml
      externalId
      externalSource
      mpn
      brand
      manufacturer
      model
      seoTitle
      seoDescription
      name
      slug
      currency
      updatedAt
      createdAt
      chargeTaxes
      availableForPurchase
      visibleInListings
      overridePrice
      overrideCurrency
      status
      subStatus
      isPriceOverrideAllowed
      isShippingRequired
      isDigital
      isAvailable
      isAvailableForPurchase
      sortOrder
      isPublished
      actions
      sortPriorityWeight
    }
    image {
      id
      sortOrder
      externalId
      externalSource
      alt
      url(size: $size)
    }
    productErrors {
      field
      message
      code
      attributes
    }
  }
}

  

3