Update a template
Put /settings/templates/{id}
URL parameters:
Name | Description | Type | Mandatory |
---|---|---|---|
id | Template Id | String | Yes |
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 |
---|---|---|
status | success / failure | String |
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 | { "status" : "success" } |