Forum Discussion
Stuart_Weenig
Mastermind
2 years agoCustom properties needs to be a list of hash tables. Not a single hash table. Be aware, if you do this, you are potentially erasing all other custom properties on the device and replacing with this one. I would fetch the current custom properties, add my property in, then patch the whole thing. Alternatively, you could do a PUT on /device/devices/{deviceId}/properties/{name}, which will ensure you're only touching that one property. PUT will create it if it doesn't exist, update it if it does exist.
Also, I've had inconsistent behavior around the opType query parameter (I also use the SDK a lot and that may be where the inconsistency lies).
Related Content
- 23 days ago
- 5 years ago
- 6 months ago
- 3 months ago