Description
Creates a new email template
Request Parameters
- APIKey = {string} (required)
- The API key you are using to authenticate the access.
- Command = {Email.Template.Create} (required)
- API Command
- ResponseFormat = {JSON | XML} (required)
- Response format
- JSONPCallBack = {bool}
- Send this parameter for cross-domain. More info about JSONP can be found here: http: //en.wikipedia.org/wiki/JSON#JSONP
- RelOwnerUserID = {integer} (required)
- Assigned user (set to 0 to make visible to anyone)
- TemplateName = {string} (required)
- Name of the email template
- TemplateDescription = {string} (required)
- Description of the email template
- TemplateSubject = {string} (required)
- Subject of the email template
- TemplateHTMLContent = {string} (required)
- HTML content of the email template
- TemplatePlainContent = {string} (required)
- Plain content of the email template
- TemplateThumbnailPath = {string} (required)
- Thumbnail path of the template on the server
Response Parameters
- Success = {true | false}
- States if there is an error or not
- ErrorCode = {integer}
- If there is an error, error's code
- TemplateID = {integer}
- ID of the new email template
Error Codes
- 1
- Template name is missing
- 2
- At least one of the email content types must be provided (HTML, plain or both)
- 3
- Target user is missing
- 99998
- Authentication failure or session expired
- 99999
- Not enough privileges