Method UpdateMailTemplate
UpdateMailTemplate(String, MailTemplateContract)
Update a mail template
Declaration
void UpdateMailTemplate(string connectionId, MailTemplateContract mailTemplate)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
MailTemplateContract | mailTemplate | MailTemplate to update |
Examples
POST http://YourServerName/InfoShare/Json/Common/UpdateMailTemplate
Example for update a mail template.{
"connectionId": "eb5718e6-8fd6-460b-9da3-4fb0434e81a8",
"mailTemplate": {
"AddLinkAsAttachment": false,
"Body": "The new Verification code from;%Username%;%VerificationCode% Your InfoShare Server",
"BodyIsHtml": true,
"Id": "6dab65c0-eee0-e911-a94b-00155d290a08",
"Name": {
"Values": [{
"Culture": "de",
"Text": "Mail template test" }, {
"Culture": "en",
"Text": "Mail template test" }, {
"Culture": "fr",
"Text": "Mail template test" }] },
"Subject": "Mail template test %VerificationCode%" }
}
Response:
{ }
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Name is not unique for culture ({culture}): {name} (10066) |
ServiceException | Mail template not found {mailTemplateId} (10098) |
ServiceException | The administrative context {administrativeContext} is already checked out by user {displayLoginName} (10129) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |