CURL Request Failing

I have been trying to debug a library ( golang ) when i stumbled upon this error. Im trying to set this via curl which fails, but i am able to use SoapUI to set the alert with the same params. I have tried other requests which work.


https://flightxml.flightaware.com/json/FlightXML2/SetAlert -d '{"ident":"JAI483", "origin":"VOBB", "destination":"VOBL", "channels":"{16 e_arrival}"'

Error :


{"error":"MISSING: no {channels} specified"}

Any help here would be appreciated as im trying to rewrite a library

Just took sometime to figure out i need to send this as Query Params in the POST request as well, while i was trying to send it in the data field.

GET or POST should work equally well, however you need to use form-arguments in either case.



https://flightxml.flightaware.com/json/FlightXML2/SetAlert?ident=JAI483&origin=VOBB&destination=VOBL&channels={16+e_arrival}