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.
If you have any questions related to this topic or you want to share your experience with other community members or our team, please visit and engage in our support community or reach out to your local reseller.