How to change the alert line in grafana using http api?

I have a alert line displayed on a panel. How can I use the http api to update this line on the fly ?