Creating Events via the REST API?
What's the pattern for calling a creating a custom Event on a thing via the REST API? Not clear from the help/documentation what entity type to reference. I'd have thought something like one of these below would work, but I either get errors or nothing:
- curl -X PUT -H "Content-Type:application/json" -H "Accept:application/xml" -H "appKey:xxx" https://(instance)/Thingworx/Things/MyThing/CustomEvent -d '{"data": "xyz"}' --> neither throws an error nor seems to be processed (have a subscriber that listens for this and generates log output, so I'd see if it came thru!).
- curl -X PUT -H "Content-Type:application/json" -H "Accept:application/xml" -H "appKey:xxx" https://(instance)/Thingworx/Things/MyThing/Events/CustomEvent -d '{"data": "xyz"}' --> throws an 'Invalid Request' error
- curl -X PUT -H "Content-Type:application/json" -H "Accept:application/xml" -H "appKey:xxx" https://(instance)/Thingworx/Things/MyThing/Services/CustomEvent -d '{"data": "xyz"}' --> throws an 'Invalid service name' error.
TIA.

