16 January 2025
Product catalogGraphQL
We made the assets
and images
fields of entities related to Product Variant Tailoring optional to match the documented behavior.
Changes:
-
[API] Made the
images
field in the Set Images update action optional. -
[GraphQL API] Made the
images
andoldImages
fields in theProductTailoringImagesSet
type optional. -
[GraphQL API] Made the
images
input field in theProductTailoringImagesSet
type optional. -
[GraphQL API] Made the
images
andassets
fields in theVariantTailoring
andProductVariantTailoring
types optional.
The following changes were introduced in terms of GraphQL SDL:
type ProductTailoringImagesSet implements MessagePayload {
variantId: Int!
storeRef: KeyReference!
productRef: Reference!
productKey: String
oldImages: [Image!]
images: [Image!]
type: String!
}
type ProductVariantTailoring {
id: Int!
images: [Image!]
assets: [Asset!]
attributesRaw: [RawProductAttribute!]!
}
input SetProductTailoringImages {
variantId: Int
sku: String
images: [ImageInput!]
staged: Boolean = true
}
type VariantTailoring {
images: [Image!]
assets: [Asset!]
}