Hello team,
In order to change the email settings from GUI I can go to Settings > Server Settings > Email Settings and there I can add the hostname of the email server.
My question is how to do the same thing using the API? Did not manage to find it in the documentation of the API.
Ok found it, it was under /servicesNS/nobody/system/admin/alert_actions/email 🙂