POST api/{database}/MailTemplate

Creates a new MailTemplate with the specified values



Request Information

Parameters

NameDescriptionAdditional information
value The MailTemplate with the updated values.

Define this parameter in the request body.

$expand MailLanguageTemplates

Define this parameter in the request URI.

Request body formats

application/json, text/json

Sample:
{
  "messages": [],
  "bcc": "sample string 1",
  "canChange": true,
  "cannotChangeReason": "sample string 3",
  "cc": "sample string 4",
  "documentType": 0,
  "mailLanguageTemplates": null,
  "mailTemplateId": "9d9ab6c0-553c-40c1-94f2-6e9dff6abb7e",
  "name": "sample string 6",
  "to": "sample string 7"
}

application/xml, text/xml

Sample:
<MailTemplate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.CRM.Edit">
  <BCC>sample string 1</BCC>
  <CC>sample string 4</CC>
  <CanChange>true</CanChange>
  <CannotChangeReason>sample string 3</CannotChangeReason>
  <DocumentType>PurchaseOrder</DocumentType>
  <MailLanguageTemplates xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.CRM.Lists" i:nil="true" />
  <MailTemplateId>9d9ab6c0-553c-40c1-94f2-6e9dff6abb7e</MailTemplateId>
  <Messages xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.Web.WebApi.Core.Models" />
  <Name>sample string 6</Name>
  <To>sample string 7</To>
</MailTemplate>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "messages": [],
  "bcc": "sample string 1",
  "canChange": true,
  "cannotChangeReason": "sample string 3",
  "cc": "sample string 4",
  "documentType": 0,
  "mailLanguageTemplates": null,
  "mailTemplateId": "b912d3a3-5192-44e1-a1f3-f0a446ca2a3e",
  "name": "sample string 6",
  "to": "sample string 7"
}

application/xml, text/xml

Sample:
<MailTemplate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.CRM.Edit">
  <BCC>sample string 1</BCC>
  <CC>sample string 4</CC>
  <CanChange>true</CanChange>
  <CannotChangeReason>sample string 3</CannotChangeReason>
  <DocumentType>PurchaseOrder</DocumentType>
  <MailLanguageTemplates xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.CRM.Lists" i:nil="true" />
  <MailTemplateId>b912d3a3-5192-44e1-a1f3-f0a446ca2a3e</MailTemplateId>
  <Messages xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.Web.WebApi.Core.Models" />
  <Name>sample string 6</Name>
  <To>sample string 7</To>
</MailTemplate>