latestOpenAPI 3.1.02026-08-085123123.9 KB

bf0b51ee8e8a

Templates

Create template

Create a new template.

post/templates

Request body

titlestring required
bodyHtmlstring

HTML body. At least one of bodyHtml or bodyText is required.

bodyTextstring

Plain text body. At least one of bodyHtml or bodyText is required.

Example request

{
  "title": "This is a test template",
  "bodyHtml": "<b>Testing!</b>",
  "bodyText": "Testing!"
}

Response

The template attributes

idinteger
titlestring
bodyHtmlstring
bodyTextstring
createdOnstring
updatedOnstring

Example response

{
  "id": 1419,
  "bodyHtml": "<b>Testing !</b><p>this is just a test</p>",
  "bodyText": "This is a test!",
  "createdOn": "2014-11-10 15:38:38.827",
  "updatedOn": "2014-11-10 15:38:38.827"
}