Distribution List Creation Issue via API Caused by a Space in Email Address

Problem: Error prompts when creating a distribution list via API due to the space character in the email address.

During the process of creating a distribution list through the API, an error is encountered when an email address contains a space character. The below example contains space in the email address which prompts an error message as highlighted in the below screenshot.

 
 

Resolution: To mitigate this issue and successfully create distribution lists without errors, avoid the spaces in the email address since a valid email address does not contain spaces in it.