Create New Template

POST {{baseUrl}}/v1/email-templates

Creates a new email template.

Request Body

[{"name"=>"name", "value"=>"New Template Name", "datatype"=>"string"}, {"name"=>"html", "value"=>"<html><body><p>This is an email for {{ email }}.</p></body></html>", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;object&quot;:&quot;email-template&quot;,&quot;name&quot;:&quot;TEMPLATE_NAME&quot;,&quot;html&quot;:&quot;\u003chtml\u003e\u003chead\u003e\u003c/head\u003e\u003cbody\u003e\u003cp\u003eSome Text\u003c/p\u003e\u003c/body\u003e\u003c/html\u003e&quot;,&quot;is_writeable&quot;:true,&quot;created&quot;:&quot;2021-11-18 03:43:51&quot;,&quot;updated&quot;:&quot;2021-11-18 03:43:51&quot;}