API set alarm duration and text

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
chibi
Posts: 6
Joined: Thu Mar 05, 2020 6:32 pm

API set alarm duration and text

Post 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?
Post Reply