update alarm rest api