Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

alert_id(optional)
Alert id to modify

Parameters

channel_id (optional)
Channel id to filter results on, always trumps channel_id in payload
Note: If provided in a GET call, will update last_requested_time to NOW (returning the original object), this is used in the GUI to determine flags for showing alert changes

Json Object
Code Block
{
        String alert_id;
    	String event_id;
    	String channel_id;
    	String alert_type_id;
    	Date last_alert_time;
    	long next_possible_alert_time_ms;
		Date last_requested_time;
}

 

Example
Code Block
curl -b cookies.txt -X GET "http://localhost:8185/alert/532af74cb8e0870ad33d94cd" > response.txt
curl -b cookies.txt -X GET "http://localhost:8185/alert/532af74cb8e0870ad33d94cd?channel_id=531f3e50b8e0a93944925594" > response.txt
curl -b cookies.txt -X POST -d '{"event_id":"52e2e833e4b013563c3ea1ee", "alert_type_id":"532af8d8b8e0dd9b47dea7f8"}' "http://localhost:8185/alert" > response.txt
curl -b cookies.txt -X PUT -d '{"event_id":"52e2e833e4b013563c3ea1ee", "alert_type_id":"532af8d8b8e0dd9b47dea7f9"}' "http://localhost:8185/alert" > response.txt
curl -b cookies.txt -X DELETE "http://localhost:8185/alert/532af74cb8e0870ad33d94cd" > response.txt

...