I have a need to push data via alert trigger action via post to a restful api, using a jason formatted set of data.
I've successfully done this from a linux command line using curl, so I have a solid understanding of how to do that. We also use web hooks to other tools like slack, so in general I have some examples of using post methods. However my json posts are failing, so I am thinking I am missing some critical formatting or other details to complete this configuration. Does anyone have any examples of posting json?
We have been able to test that the json object it correctly populated with data by sending an email with it, so the json is under control, I just need to make the post action work.
I do have the content type set to "Content-Type: application/json"... And in the body I build the json object. I just need to know what else to add to the format.
It is possible I already have it right, and in that case I need to know how to debug/test/monitor the actual post transaction.