latestOpenAPI 3.1.02026-08-085123123.9 KB

bf0b51ee8e8a

Templates

Replace a template

Modify the representation of a template so that it becomes completely as specified. Unspecified attributes will be reset to their default empty values.

put/templates/{id}

Path parameters

idinteger required

The template's numerical ID

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"
}