https://communities.sas.com/t5/SAS-Viya/Example-for-sending-email-using-REST-Api/m-p/888375#M1967
contains the answer to your question
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Latest Updates