productImageUpdate Mutation
Updates a product image.
Arguments
#
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
{
"id": "aWQ6NzU=",
"input": {
"alt": "alt"
},
"size": 42
}
3
{
"productImageUpdate": {
"product": {
"id": "aWQ6MzY=",
"publicationDate": "2022-03-06",
"description": "string",
"descriptionHtml": "string",
"externalId": "string",
"externalSource": "string",
"mpn": "string",
"brand": "string",
"manufacturer": "string",
"model": "string",
"seoTitle": "string",
"seoDescription": "string",
"name": "Acme",
"slug": "sample-slug",
"currency": "string",
"updatedAt": "2022-03-06T08:23:45.000Z",
"createdAt": "2022-03-06T08:23:45.000Z",
"chargeTaxes": true,
"availableForPurchase": "2022-03-06",
"visibleInListings": true,
"overridePrice": true,
"overrideCurrency": true,
"status": "DRAFT",
"subStatus": "IN_REVIEW",
"isPriceOverrideAllowed": true,
"isShippingRequired": true,
"isDigital": true,
"isAvailable": true,
"isAvailableForPurchase": true,
"sortOrder": 42,
"isPublished": true,
"actions": [
"DECLINED"
],
"sortPriorityWeight": 10.23
},
"image": {
"id": "aWQ6NTI=",
"sortOrder": 42,
"externalId": "string",
"externalSource": "string",
"alt": "string",
"url": "string"
},
"productErrors": [
{
"field": "string",
"message": "string",
"code": "ALREADY_EXISTS",
"attributes": [
"YXR0cmlidXRlczo3OQ=="
]
}
]
}
}
3