26 September 2024
Composable Commerce
HTTP API
Enhancement
Product catalogGraphQL

We introduced Product Tailoring of Attributes in public beta. You can now customize product attributes for specific brands or countries, modeled with Stores, to enhance your product offering in different markets.

Changes:

The following changes were introduced in terms of GraphQL SDL:

extend type ProductVariantTailoring {
  "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
  attributesRaw: [RawProductAttribute!]!
}

extend input ProductVariantTailoringInput {
  "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
  attributes: [ProductAttributeInput!] = []
}

extend input AddProductVariantTailoring {
  "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
  attributes: [ProductAttributeInput!] = []
}

extend input ProductTailoringUpdateAction {
  setAttribute: SetProductTailoringAttribute
  setAttributeInAllVariants: SetProductTailoringAttributeInAllVariants
}

input SetProductTailoringAttribute {
  variantId: Int
  sku: String
  name: String!
  value: String
  staged: Boolean = true
}

input SetProductTailoringAttributeInAllVariants {
  name: String!
  value: String
  staged: Boolean = true
}