Generic Event API issue
AnsweredHi,
I'm currently in the trial period and trying to replace my existing NVR, but I can't create a createEvent API call. I have the latest version 5.0.0.35745
Tried via the build in testing tool on
https://IP_ADDRESS:7001/#/api-tool/api-createevent-post?version=current%20api
As an example, I copy/paste the provided example:

And I always get the same error:

I added additional values source and description and the error is always the same.
I tried the same via Postman and I get the exact error even if I define 'source', 'caption' or 'description' with appropiate values. I also tried with correct cameraRefs, withot timestamp, different combinations...
My end goal is to receive snapshots based on events like its described here:
Since it did not work, I started to troubleshoot and found out that I'm unable to create events
Thanks
-
Hello,
In my case it worked fine

I guess in your case, you mistyped the metadata parameter. According to the documentation
ATTENTION: This field is an enquoted JSON string containing a JSON object.
That means you should put backslashes. Similar to this
{
"source": "TEST",
"metadata":"{\"cameraRefs\":\[\"9f820752-a292-8735-8cf0-9a5b71d7f0ee\"\]}"
}0 -
Working. Thank you.
0
Please sign in to leave a comment.
Comments
2 comments