I am trying to trigger an event as outlined here: https://github.com/milestonesys/mipsdk-samples-protocol/blob/main/EventsRestApiPython/events_rest_api.py
However, although I have a User-defined event, /api/rest/v1/userDefinedEvents gives me an empty array.
I tried retrieving the Generic events as well, but /api/rest/v1/genericEvents gives me a 400 error with the error “Bad request: The parameter is not a valid id”
I checked on out test setup and we are able to get the User-Defined events through REST. Your Url is correct and it should work. I would expect that an issue could be if the user you are using to retrieve the events dont have access to them. Could you try and use an admin user to get the events, just to verify that the events can be retrieved?
Hi Henrik, thank you for the response; I will be able to test this and get back to you next week.
In the meantime, I was wondering if it is possible to create User-Defined Events such that Basic role users could access them?
If not, how can I set up an event system that can be triggered by a basic user?
In order to configure access to user defined events for a user I suggest to use Management Client. Start out by creating a role for these basic users. In that role you can either go into “Overall Security” tab. Here you can find “User-defined Events” and set security for all user defined event. Alternatively you can go to the “External Events” tab and setup security for the individual event.
Setting up Roles was the missing piece, thank you!