Enable / Disable Event Rule by API - Not Working?
AnsweredHi,
We have a site that send bookmarks on various events such as an OpenVino detection or built-in camera evens (axis loitering etc)
We want to arm / disarm these bookmarks using an IO module (input from the customers intruder alarm).
I've followed a guide to do this through copying the event parameters in server:port/ec2/getEventRules and creating a HTTPS request changing disabled to true or false depending on whats required, but this doesnt seem to be working for us. The rule always seems to stay active.
Please could anyone assist?
This is the rule we're testing it on:
actionParams:"{"additionalResources":["{00000000-0000-0000-0000-100000000000}","{00000000-0000-0000-0000-100000000001}"],"allUsers":false,"authType":"authBasicAndDigest","durationMs":5000,"forced":true,"fps":10,"needConfirmation":false,"playToClient":true,"recordAfter":0,"recordBeforeMs":1000,"streamQuality":"highest","useSource":true}"actionResourceIds:[]actionType:"bookmarkAction"aggregationPeriod:0comment:""disabled:falseeventCondition:"{"analyticsEngineId":"{cb4a4ec3-31e4-7fe7-ba2a-e3464b407edc}","eventTimestampUsec":"0","eventType":"undefinedEvent","inputPortId":"nx.axis.{e2fe5e43-4875-4951-9aeb-8df3c89fd888}","metadata":{"allUsers":false,"level":""},"omitDbLogging":false,"progress":0,"reasonCode":"none"}"eventResourceIds[1]0:"{d98453f4-9d89-c52c-af48-6fc00304acf1}"eventState:"Active"eventType:"analyticsSdkEvent"id:"{71a50bb9-4d43-4ba5-9234-99f33159b35c}"schedule:""system:
-
Hi Tom
Thanks for your question. From the description, it seems like authentication issue or incorrect JSON objects passed.
Have you tried to enabled the 3rd-party digest authentication for the account you were using?
Also, can you confirm the JSON object is passed without format issue? (you may try to confirm the JSON via any online tool, ex: https://jsonlint.com/)
Please sign in to leave a comment.
Comments
1 comment