AddTextTemplate

Overview

Adds a new “Text Message Template” to settings based on information sent via an http form post.

Post Url

https://www.allclients.com/api/2/AddTextTemplate.aspx
  • SSL is requred
  • White Label CRM Customers: Replace www.allclients.com with your White Label CRM domain name.

Form Fields

Field Max Length* Required Notes
response_type   No Default results will be returned in XML. Set this field value to json to return results in JSON format
accountid   Yes Must be numeric. Account ID for this account. Found in Settings > API Settings or for White Label CRM in the Admin control panel
apikey   Yes API Key for this account. Found in Settings > API Settings or for White Label CRM in the Admin control panel
name 50 Yes Display name for the Text Message Template
folder 50 No Folder for Text Message Template. If folder does not exist, it will be created.
message 160 Yes Text Message Body

Sample Results

Success Message

<?xml version="1.0"?>
<results>
    <message>Success</message>
    <texttemplateid>15631</texttemplateid>
</results>

Sample Failure Message

<?xml version="1.0"?>
<results>
    <error>Authentication failed</error>
</results>

<?xml version="1.0"?>
 <results>
     <error>Text Template with this 'name' already exists</error>
 </results>