REST API and User Defined Events

We have an existing integration that utilizes SmartWall control, however a current project doesn’t have access to that feature. As an alternative, we have been exploring the REST API and Matrix functionality, until we can put together a different plug-in. Our test setup is using the API to trigger a User Defined Event, with a Rule that sends a camera to a Matrix window. After going through the documentation, I am still uncertain on one item. First, in order to eliminate the need for hundreds of rules, we were hoping to use the “devices from metadata” option in the Rule configuration. Can anyone provide an example of what exactly needs to be sent in the “Data” key when initially triggering the event from the API, so that the rule can properly pick up on the camera we want? We’ve tried many different ways after going through this forum, without much luck.

I appreciate any help. Thanks!

The Event Rest API implementation does not support related devices. If you trigger a User-defined event with a camera the information is not sent to the rule engine.

There is a workaround and that is to use an Analytics event instead.

According to Milestone Development they are now aware of this issue and will make sure the functionality is corrected when they update the Event REST before taking it out of beta.

With the MIP SDK or the Alarm command protocol you can use user defined events, using Events Rest API you must use Analytics events (for now).