-------------------------
Affected Roles: System Owner • System Administrator
Related Nx VMS Apps: Nx Server
Difficulty: High
-------------------------
It is possible to create or modify event rules with undocumented /ec2/saveEventRule API POST-request.
This method requires explicit JSON with many obligatory attributes attached as a payload. The best way to get it is to call GET /ec2/getEventRules first and take necessary json from there.
To modify the existing rules user needs to modify existing JSON objects keeping "id" attribute untouched.
To add new rules user needs to send JSON object specifying:
- new generated "id" attribute, it will create "event rule" resource. Nx Server uses special unique identifiers for "id" fields. New valid ones might be generated here.
- all the rest attributes including nested JSON objects should be specified according to analogous ones from the server reply to /ec2/getEventRules request.
Comments
0 comments
Please sign in to leave a comment.