Create Template
This method creates a Transactional Messaging Template.
This is a GET 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/create/{token}/{name}/{description}/{subject}/{from}/{fromEmail}/{to}/{encoding}/{replyTo}/{replyToEmail}/{type}
| Input parameters
Required parameters | Description | Output parameters | Description |
| ----------------------------------------------------------------------------- | ----------- | ----------------- | ----------- |
| token | The connection token | return | The ID of the Template |
| name | The name of the Template. Note that the template name value is only visible in your ATMP interface and recipients cannot see it. | | |
| description | The description of the Template. Note that the description value is only visible in your ATMP interface and recipients cannot see it. | | |
| subject | The subject of the Template | | |
| from | The From display name value. | | |
| fromEmail | The From email sender address.
Note: If you provide an email sender address that has not been validated for your ATMP license, it will be replaced by the default email sender address from your license automatically. | | |
| to | The To display name value. | | |
| encoding | The encoding used (e.g. UTF-8) | | |
| replyTo | The Reply To display name value. | | |
| replyToEmail | The Reply To email address. | | |
| type | The type of Template:
- TRANSACTIONAL
- SOCIALNETWORK (this value is deprecated)
Error messages
- You must fill in the token parameter
- You must fill in the name parameter.
- You must fill in the description parameter.
- You must fill in the subject parameter.
- You must fill in the from parameter.
- You must fill in the fromEmail parameter.
- You must fill in the to parameter.
- You must fill in the replyTo parameter.
- You must fill in the replyToEmail parameter.
- 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
https://atmp-pub-api-www3.actito.com/apitransactional/services/rest/template/create/{token}/TemplateName/Description/Hello/John%20Smith/john.smith%40smartfocus.com/Jane%20Scott/UTF-8/No%20Reply/noreply%40smartfocus.com/TRANSACTIONAL
Output
<response responseStatus="success">
<result xsi:type="xs:long">178</result>
</response>