Emailing images on Event
AnsweredHi I followed the instructions for using the API to email an image when a Generic Event occurs but I am getting this message when I try to use it
Invalid value for parameter 'metadata'. It should be a json object. See documentation for more details
This is what I am using in the DoHTTP action
http://serverip:7001/api/createEvent?caption=Knots&description=Havelock&metadata={“CameraRefs”:[“fdf58f0c-55ef-b8fc-6ccf-b87a54458e22”]}
any ideas ?
-
Hi Alan,
Problem should be the format with your quotation marks. Try the below URL:
http://server IP:7001/api/createEvent?source=Knots&description=Havelock&metadata={"CameraRefs":["fdf58f0c-55ef-b8fc-6ccf-b87a54458e22"]}
or
http://server IP:7001/api/createEvent?source=Knots&description=Havelock&metadata=%7B%22CameraRefs%22:[%22fdf58f0c-55ef-b8fc-6ccf-b87a54458e22%22]%7D
Let me know if it still doesn't work on your side, thank you!
Post is closed for comments.
Comments
1 comment