I want to make an HTTP POST request using Postman to create an email record in which the "To" field is a static email address.
I intend to use the "To" as an unresolvable field, meaning that the Web API should not attempt to find a system user or a team.
The request below doesn't work
HTTP POST [Organization URI]/api/data/v9.0/emails
Content-Type: application/json; charset=utf-8
OData-MaxVersion: 4.0
OData-Version: 4.0
Accept: application/json
{
"subject": "test",
"to": "staticemail@domain.com"
}
Also tried this but it didn't work
{
"subject": "test",
"to": [ { "addressused": "staticemail@domail.com", "participationtypemask": 2}]
}
What is the right way to create an email using HTTP requests?