When trying to send email through the VIYA REST api from a shell script I get the following message: {"version":2,"httpStatusCode":400,"message":"The request body was missing or invalid.", "details":["path: /mail/messages","correlator: 70862b93-1626-4763-ad6d-b7d5d6e1032e"]} This is how I issue the request: curl -s -k -X POST "$base_url/mail/messages" \
-H "Authorization: Bearer $IDTOKEN" \
-H 'Content-Type: application/vnd.sas.mail+json' \
-d '{
"to":"me@email.adres",
"subject":"testmail door Gerold van viya LTEST",
"message":"Deze mail wordt verstuurd met de VIYA REST API"
}' I can't find documentation on the data part of the request. Documetation only mentions to have the three fields. I tried making the "message" field a list but that doesn't work either.
... View more