Description
Creates a new message as a draft.
Request path
POST [REST URL]/draftmessage/create
Request Body Type
Notes
From 6.90.4914.1 build "from" header is allowed with dmarcTrue FS,
provided valid domains are used.
Example body
Code Block |
---|
{ "name": "Test Draft Message", "externalId": null, "messageCategoryId": null, "message": { "subject": "This is draft test", "emailBodyText": null, "emailBodyHtml": "Test", "smsText": null, "faxText": null, "emailHeaders": [ ], "attachments": [ ], "attachmentReferences": null, "encoding": "ISO-8859-1", "encodingSMS": "ISO-8859-1", "imageHandlingMode": "none" } } |
Example body with from headerand Reply-to headers
Code Block |
---|
{ "name": "Test Draft Message", "externalId": null, "messageCategoryId": null, "message": { "subject": "This is draft test", "emailBodyText": null, "emailBodyHtml": "Test", "smsText": null, "faxText": null, "emailHeaders": [{"name":"from","value":"John<info@qamanual.staging11.shortest-route.com>"}, {"name":"testReply-to","value":"Bob <info@qamanual.staging11.shortest-route.com>"}], "attachments":[], "attachmentReferences": null, "encoding": "ISO-8859-1", "encodingSMS": "ISO-8859-1", "imageHandlingMode": "none" } } |
Response when dmarcTrue=true and domain not matching
Code Block |
---|
{
"errorActor": null,
"errorCode": "INVALID_PARAMETER",
"message": "reply-to email must contain valid email domain",
"parameterName": null,
"propertyName": null,
"value": null
} |