Skip to main content

Update Template (POST)

This method updates a Transactional Messaging Template.

This is a POST method.

REST WADL

https://atmp-pub-api-www3.actito.com/apitransactional/services/rest?_wadl&_type=xml

REST URL

https://atmp-pub-api-www3.actito.com/apitransactional/services/rest/template/update/{token}

| Input parameters
Required parameters | Description | Output parameters | Description | | ----------------------------------------------------------------------------- | ----------- | ----------------- | ----------- | | token | The connection token | return | true if it was successful, false if it was not successful | | template | The Template object | | |

Error messages

  • You must fill in the token parameter
  • No template found !!
  • Error while retrieving the default sender on your account.
  • This sender is not configured for your account.
  • Template type not supported.
  • An error occured on the server

REST Example

Input

URL

https://atmp-pub-api-www3.actito.com/apitransactional/services/rest/template/update/{token}

Content-type

content-type application/x-www-form-urlencoded

Body

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<template>
<body>[EMV HTMLPART]
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;
&amp;lt;title&amp;gt;SmartFocus Email &amp;amp;amp; Mobile&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body bgcolor=&amp;quot;#DFDFDF&amp;quot; topmargin=&amp;quot;0&amp;quot; leftmargin=&amp;quot;0&amp;quot; marginheight=&amp;quot;0&amp;quot; marginwidth=&amp;quot;0&amp;quot; style=&amp;quot;-webkit-font-smoothing:antialiased;width:100% !important;background-color:#DFDFDF;background-image:none;background-repeat:repeat;background-position:top left;background-attachment:scroll;&amp;quot; &amp;gt;
[EMV CONTENT]1[EMV /CONTENT]
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
[EMV TEXTPART]
[EMV CONTENT]2[EMV /CONTENT]
</body>
<description>DESCRIPTION</description>
<encoding>UTF-8</encoding>
<from>FROM</from>
<fromEmail>from@email.com</fromEmail>
<id>1585</id>
<name>NAME</name>
<replyTo>REPLY_TO</replyTo>
<replyToEmail>reply@email.com</replyToEmail>
<sent>true</sent>
<subject>SUBJECT</subject>
<to>TO</to>
</template>

Output

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<response responseStatus="success">
<result xsi:type="xs:boolean"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">true
</result>
</response>