post https://api4.optimove.net/Optimail/AddTemplate
Creates a new Optimail template.
Rate Limit
This endpoint is subject to the general API rate limit of 50 requests per 10 seconds. Learn more about handling rate limits.
Sample Request
{
"TemplateName":"GIF Lovers",
"Subject":"Hello GIF Lovers",
"Html":"<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>GIF with a hard G</title>
</head>
<body style=\"min-height:325px;\">
<img src=\"https://d31v04zd2.cloudfront.net/blog/wp-content/uploads/2014/03/loft-unwrap-animation-repeat.gif\"
width=\"100\" height=\"100\" alt=\"GIF with a hard G\" border=\"0\" class=\"fr-dii fr-draggable\" style=\"float:none;\">
</body>
</html>",
"PlainText":"GIF with a hard G",
"FromName":"GIF World",
"ReplyToAddressID":2,
"FromEmailAddressID":3,
"FolderID":104176,
"PreferenceGroupID":128009
}
Sample Response
{
"TemplateID":9481
}