Ajouter un template
Post /settings/templates
Paramètres :
Nom | Description | Type | Obligatoire | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
description | Description du template | String | Oui | ||||||||||||
from |
|
Struct | Oui | ||||||||||||
htmlContent | Contenu Html | String | Oui | ||||||||||||
textContent | Contenu texte | String | Oui |
Réponse :
Nom | Description | Type | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
templates |
|
Struct |
Langage de programmation :
Exemple de requête :
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" } |
Exemple de réponse :
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 } |