Templates

Update a template

Update a stored template.

put/v1/templates/template/{template}

Request

  • Base URL: https://your-emailengine-host
  • URL: https://your-emailengine-host/v1/templates/template/{template}
  • Auth: HTTP bearer

Path parameters

templatestring required

Template ID

Example:example

Headers

x-ee-timeoutinteger

Request timeout in milliseconds. Raises the command timeout above the EENGINE_TIMEOUT default for a long-running request; a value below the default has no effect

Example:30000

Request body

namestring

Name of the template

descriptionstring

Optional description of the template

format'html' | 'markdown'

Markup language for HTML ("html" or "markdown"). Leave out to keep the stored value

Example request

{
  "name": "Transaction receipt",
  "description": "Something about the template",
  "content": {
    "subject": "What a wonderful message",
    "text": "Hello from myself!",
    "html": "<p>Hello from myself!</p>",
    "previewText": "Welcome to our newsletter!"
  }
}

Response

Returns the updated template.

updatedboolean

Was the template updated or not

accountstring nullable required

Account ID. Null for public templates

idstring required

Template ID

Example response

{
  "account": "user123",
  "id": "example"
}

Changes

No recorded changes to this operation across all 1 revision of this API.