I am trying to create an event rule to get information about motion detection events when they occur on my server. I am using /ec2/saveEventRule POST API endpoint to save that rule but I am getting 400 Bad Request in response and there is no explanation where the issue is.
What I need is that whenever a motion detection event occurs, I should get a hit on my server on a route with it's system_id, camera_id and time of the event. Here is the json that I am sending:
I have added all the fields that are required according to the documentation but I am still getting 400 status in response. Let me know what I need to update for it to work properly?
Also do I need to create an event rule for each camera in a system or one event per system would work for each camera as well?
I also need to know in which field should I add the http url to for my server?
Please sign in to leave a comment.