All Release Notes
Added endpoints for Product Variant Patches
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 the commercetools platform in small patches, use the Importing Product Variant Patches endpoint. As all other import API features, this new product variant patche feature also has below endpoints
- Patch request creation endpoint with a POST method.
- Patch request status monitoring by ImportSink key or ImportOperation id.