fix alarm rest api