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]
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;SmartFocus Email &amp;amp; Mobile&lt;/title&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#DFDFDF&quot; topmargin=&quot;0&quot; leftmargin=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; style=&quot;-webkit-font-smoothing:antialiased;width:100% !important;background-color:#DFDFDF;background-image:none;background-repeat:repeat;background-position:top left;background-attachment:scroll;&quot; &gt;
[EMV CONTENT]1[EMV /CONTENT]
&lt;/body&gt;
&lt;/html&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>