Cole_McDonald
Professor
5 years agoREST API Patch issue...
Has anyone had any success using the v2 of the REST API to push a PATCH to add a customer property to an object (in this case /device/groups/##### without wiping out any other custom properties that have already been set?
We've run into a curious behavior while trying to add a property to feed out integration to our ticketing system. It seems to replace the whole of the custom properties object, not just the child object within the customproperties level of the json:
{ `"customProperties`" : [{
`"name`" : `"connectwisev2.companyid`",
`"value`" : `"$($integrationID.TrimEnd())`"
}]
}
We had 2-3 other properties in there that disappeared after patching.