Creating a Message

Creates a Content Message for use in a job


Function

  • createMessage()

Url

  • POST: /PuresendService/v1/createMessage

Parameters

  • name: String
    • name of content message.
  • categoryId: int
    • category to create Message in.
    • -1 for default top level category.
  • htmlContent: String
    • message content for html based viewing
  • textContent: String
    • message content for text viewing allowed.
  • mobileContent: String
    • message content for mobile viewing allowed.
  • headerId: int
    • content ID of header
  • footerId: int
    • content ID of footer

Return

  • messageId: int
    • message ID: the newly created message id

Exception

  • Exception

Documentation

  • Creates a Content Message for use in a job.

Examples

{
    "messageName" : "New Message Name",
    "categoryId" : -1,
    "htmlContent" : "<p>Test html</p>",
    "textContent" : "textContent",
    "mobileContent" : "",
    "headerId" : 0,
    "footerId": 0
}
{
    "messageId": 12345
}