Post
/draftmessage/createFromCms
Creates a new draft from the rendered CM2 message. Available since API v19. No request body is required. Each successful call creates a new draft owned by the API user. Copies the name, external ID, subject, email content, image handling and message category. Dynamic RSS placeholders are preserved; the draft is not assigned to a sendout group.
Query parameters
cmsMessageId
integer (int64) Required
The positive numeric ID of the source CM2 message.
Responses
200
The created draft message.
object
id
integer (int64)
name
string
externalId
string
messageCategoryId
integer (int64)
message
object (MessageBase)
subject
string
emailBodyText
string
emailBodyHtml
string
smsText
string
faxText
string
emailHeaders
Array of object (Attribute)
object
name
string
value
string
attachments
Array of object (Attachment)
object
name
string
contentType
string
content
string
attachmentReferences
Array of object (AttachmentReference)
object
contentId
string
reference
string
encoding
string
encodingSMS
string
imageHandlingMode
string
400
Invalid ID, missing CM2 message, invalid content or category, or insufficient CM2 permissions.
500
The CM2 message could not be rendered or retrieved.