update set_alarm to use POST requests