Page 1 of 1

API set alarm duration and text

Posted: Sun Aug 01, 2021 7:49 pm
by chibi
Been searching for a while but have not found out how to set an alarm duration and text using the API, like it is possible with ZM Trigger.

ZM Trigger example:
1|on+20|1|External Motion|External Motion
Where monitor 1 gets triggered for 20 seconds and shows External Motion in the %Q part of the timestamp and is logged as External Motion.

With API there seems to be a method to start and stop an alarm which is ok.
/zm/api/monitors/alarm/id:1/command:on.json
/zm/api/monitors/alarm/id:1/command:off.json

However, setting the text and duration so an alarm automatically closes does not seem to be documented.

Did I miss the documentation for those features?