Modifier un template
Put /settings/templates/{id}
Paramètres dans l'URL :
Nom | Description | Type | Obligatoire |
---|---|---|---|
id | Id du template | String | Oui |
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 |
---|---|---|
status | success / failure | String |
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 | { "status" : "success" } |