Topic by Joel Sunaz
I'm trying to update the product and category in an answer record but I need the new value(s) to REPLACE the existing values and not add them as additional product/category which are namedIdHierarchy objects. Below is a sample JSON I pass to a PATCH http request:
{
"products" : [{
"id" : 117
},
{
"id" : 123
}
],
"categories" : [{
"id" : 154
},
{
"id" : 160
}
]
}
I tried nulling them out first and then send another request with the new values but this will impact performance as this will now require 2 separate requests.