PUT api/v1/emailtemplates/{emailTemplateId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
emailTemplateId

globally unique identifier

Required

Body Parameters

EmailTemplateDetails
NameDescriptionTypeAdditional information
EmailTemplateId

globally unique identifier

None.

EmailTemplateName

string

Required

String length: inclusive between 0 and 100

EmailTemplateKeyName

string

Required

String length: inclusive between 0 and 100

Description

string

None.

LanguageId

integer

None.

FromAddress

string

Required

String length: inclusive between 0 and 256

ReplyToAddresses

string

String length: inclusive between 0 and 256

Subject

string

Required

String length: inclusive between 0 and 256

HtmlBody

string

None.

TextBody

string

None.

Id

globally unique identifier

None.

CanUpdateRecord

boolean

None.

CanDeleteRecord

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "EmailTemplateId": "c8e7295a-2f78-4142-b85f-7c5c3766c71d",
  "EmailTemplateName": "sample string 2",
  "EmailTemplateKeyName": "sample string 3",
  "Description": "sample string 4",
  "LanguageId": 5,
  "FromAddress": "sample string 6",
  "ReplyToAddresses": "sample string 7",
  "Subject": "sample string 8",
  "HtmlBody": "sample string 9",
  "TextBody": "sample string 10",
  "Id": "c8e7295a-2f78-4142-b85f-7c5c3766c71d",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"EmailTemplateId":"c8e7295a-2f78-4142-b85f-7c5c3766c71d","EmailTemplateName":"sample string 2","EmailTemplateKeyName":"sample string 3","Description":"sample string 4","LanguageId":5,"FromAddress":"sample string 6","ReplyToAddresses":"sample string 7","Subject":"sample string 8","HtmlBody":"sample string 9","TextBody":"sample string 10","Id":"c8e7295a-2f78-4142-b85f-7c5c3766c71d","CanUpdateRecord":true,"CanDeleteRecord":true}

application/xml, text/xml

Sample:
<EmailTemplateDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi.Emails">
  <CanDeleteRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanDeleteRecord>
  <CanUpdateRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanUpdateRecord>
  <Id xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">c8e7295a-2f78-4142-b85f-7c5c3766c71d</Id>
  <Description>sample string 4</Description>
  <EmailTemplateId>c8e7295a-2f78-4142-b85f-7c5c3766c71d</EmailTemplateId>
  <EmailTemplateKeyName>sample string 3</EmailTemplateKeyName>
  <EmailTemplateName>sample string 2</EmailTemplateName>
  <FromAddress>sample string 6</FromAddress>
  <HtmlBody>sample string 9</HtmlBody>
  <LanguageId>5</LanguageId>
  <ReplyToAddresses>sample string 7</ReplyToAddresses>
  <Subject>sample string 8</Subject>
  <TextBody>sample string 10</TextBody>
</EmailTemplateDetails>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

EmailTemplateDetails
NameDescriptionTypeAdditional information
EmailTemplateId

globally unique identifier

None.

EmailTemplateName

string

Required

String length: inclusive between 0 and 100

EmailTemplateKeyName

string

Required

String length: inclusive between 0 and 100

Description

string

None.

LanguageId

integer

None.

FromAddress

string

Required

String length: inclusive between 0 and 256

ReplyToAddresses

string

String length: inclusive between 0 and 256

Subject

string

Required

String length: inclusive between 0 and 256

HtmlBody

string

None.

TextBody

string

None.

Id

globally unique identifier

None.

CanUpdateRecord

boolean

None.

CanDeleteRecord

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "EmailTemplateId": "7cf5e9e5-893d-4bc4-ba7e-031118c8fb1c",
  "EmailTemplateName": "sample string 2",
  "EmailTemplateKeyName": "sample string 3",
  "Description": "sample string 4",
  "LanguageId": 5,
  "FromAddress": "sample string 6",
  "ReplyToAddresses": "sample string 7",
  "Subject": "sample string 8",
  "HtmlBody": "sample string 9",
  "TextBody": "sample string 10",
  "Id": "7cf5e9e5-893d-4bc4-ba7e-031118c8fb1c",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"EmailTemplateId":"7cf5e9e5-893d-4bc4-ba7e-031118c8fb1c","EmailTemplateName":"sample string 2","EmailTemplateKeyName":"sample string 3","Description":"sample string 4","LanguageId":5,"FromAddress":"sample string 6","ReplyToAddresses":"sample string 7","Subject":"sample string 8","HtmlBody":"sample string 9","TextBody":"sample string 10","Id":"7cf5e9e5-893d-4bc4-ba7e-031118c8fb1c","CanUpdateRecord":true,"CanDeleteRecord":true}

application/xml, text/xml

Sample:
<EmailTemplateDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi.Emails">
  <CanDeleteRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanDeleteRecord>
  <CanUpdateRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanUpdateRecord>
  <Id xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">7cf5e9e5-893d-4bc4-ba7e-031118c8fb1c</Id>
  <Description>sample string 4</Description>
  <EmailTemplateId>7cf5e9e5-893d-4bc4-ba7e-031118c8fb1c</EmailTemplateId>
  <EmailTemplateKeyName>sample string 3</EmailTemplateKeyName>
  <EmailTemplateName>sample string 2</EmailTemplateName>
  <FromAddress>sample string 6</FromAddress>
  <HtmlBody>sample string 9</HtmlBody>
  <LanguageId>5</LanguageId>
  <ReplyToAddresses>sample string 7</ReplyToAddresses>
  <Subject>sample string 8</Subject>
  <TextBody>sample string 10</TextBody>
</EmailTemplateDetails>