You need to have either a <$title$> or <$description$> tag

Hi there,

I've been trying to use the Template.Update API method, and I'm passing it through a link to a page that looks like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>Lorem ipsum dolor sit</title>
</head>
<body>
    <div id="title">
        <$title$>
    </div>
    <div id="unsubscribe">
        <unsubscribe>unsubscribe</unsubscribe>
    </div>
    <p>This is my template</p>
    <ul id="news">
        <li><a href="#">Item 1</a></li>
    </ul>
</body>
</html>

This is just basic html for testing, so it contains nothing but the essentials.

But it just gives me the 4101: No Description Or Repeater error. The <$title$> tag is there, and the same template uploads fine from within campaign monitor. Any ideas?

Jason Jason, 7 years ago

Hey taktak,

Looking at your code, there doesn't seem to be anything wrong with this, and if it uploads fine from within the app, it definitely should from the API. The validation error that it's throwing actually uses the same code in both, so it's a bit of a mystery exactly what's happening here.

If it's possible to contact us directly at support, mention your post here, and also include your api code as you are using it, we'll be able to help you out.

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098