18 December 2020
Feature
Product CatalogPatches

Now you are able to update more than one ProductVariants belonging to different or the same Products with several small Patches.

For example, send a single request with an array of Patches as follows.

{
"type" : "product-variant-patch",
"patches" : [ {
"productVariant" : {
"typeId" : "product-variant",
"key" : "red-t-shirt"
},
"product" : {
"key" : "t-shirt",
"typeId" : "product"
},
"attributes" : {
"new" : {
"type" : "boolean",
"value" : false
},
"old" : {
"type" : "boolean",
"value" : true
},
"weight" : "null"
}
}]
}

To update product variants in small patches, use the Importing Product Variant Patches endpoint. As all other import API features, this new Product Variant patch feature also has the below endpoints:

  • Patch request creation endpoint with a POST method.
  • Patch request status monitoring by ImportSink key or ImportOperation id.