Add a template
Post /settings/templates
Parameters:
Name | Description | Type | Mandatory | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
description | Template description | String | Yes | ||||||||||||
from |
|
Struct | Yes | ||||||||||||
htmlContent | Html content | String | Yes | ||||||||||||
textContent | Text content | String | Yes |
Response:
Name | Description | Type | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
templates |
|
Struct |
Programming language:
Request exemple:
1 2 3 4 5 6 7 8 9 10 11 | { "description" : "description du template" , "from" : { "address" : "from@example.com" , "personalName" : "Sender name" }, "subject" : "Message subject" , "htmlContent" : "html content" , "textContent" : "text content" } |
Response exemple:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | { "id" : "g65r4g64h65tr47h678th11d" , "templateName" : "description-du-template" , "description" : "Description du template" , "from" : { "address" : "from@example.com" "personalName" : "Sender name" }, "subject" : "Message subject" , "htmlContent" : "html content" , "textContent" : "text content" , "createdAt" : 1447938089, "updatedAt" : 1447938089 } |