For many years I've been using my intercom (2N) to trigger some functionality via Indigo when someone calls at the door - a simple HTTP call via built-in automation.
Now it's not working because of deprecated RESTful API.
I'm trying to re-enable the feature. Authentication works OK, but I'm confused with payload a bit.
What should I put in the "text" field?
The URI is "http://172.16.1.100:8176/v2/api/command?api-key=xxxx" (works ok)
The text is {"message":"indigo.variable.updateValue","objectId":'1208039266',"parameter":{"value":"True"}}', which is not working.
Web Server Debug received an API command message with an invalid JSON payload:
{"message":"indigo.variable.updateValue","objectId":'1208039266',"parameter":{"value":"True"}}'
Web Server Warning HTTP 400 error for request /v2/api/command from 172.16.1.26