Has anyone done this, or knows how to help?
I’m trying to create an alert from a windows script using curl.
I have created an alert with a simple expected payload
{
"Source": "$SOURCE",
"Status": "$STATUS"
}
What format should I use? I’ve tried different variations on the below, and pretty sure I get a connection, but I’m not passing the data correctly (no Alert is generated).
curl.exe -H "Content-Type:application/json" -d "{'Source':'myscript', 'Status':'OK' }" https://mycompany.alerts.freshservice.com/integrations/alertid/alerts?auth-key=myauthkey
(mycompany, alertid, myauthkey removed from the above, but I have these values from the webhook setup in Freshservice)
Regasds,
Amdrew
Best answer by aread007
View original