Upsert is not happening properly in Catalog

I am trying to update the ImageId in CatalogItems and in the postbody I am not mentioning the ‘variations’ aggregate, so what is happening is, the ImageId is getting updated, but the values of ‘variations’ aggregates get updated to null. So, my question is, is it mandatory to provide the variations aggregate in Postbody while performing upsert ?

Yes, any update to the object you’ll need to pass in all fields of the existing object in addition to the ones you want to update. :slightly_smiling_face:

1 Like

Thanks for the reply. :slightly_smiling_face: