API Error
Can anyone tell me how to fix this error 422 shown in this API call:
verboseTrace: patchObjectAsync> - patch api call with attributes {"data":{"id":"de16ee71-a91d-495c-a33b-948b4fcc4861","type":"hvac-units","attributes":{"temperature":82}}} failed, Error: 422
-
Sorry, I'll explain.
I am using another developer's Smartthings code. DTH is an acronym for Device Type Handler. It's part of the programming structure for utilitizing Smartthings.
The code utilizes the library "asynchttp_v1" whithin which is the procedure (I think that's what one calls it) "patch"
Hence, asynchttp_v1.patch('patchObjectAsync', params, args)
In case you're curious:
https://docs.smartthings.com/en/latest/smartapp-developers-guide/async-http.html?highlight=patch
Please sign in to leave a comment.
Comments
5 comments