POST api/{database}/MailMessage

No Documentation Found.



Request Information

Parameters

NameDescriptionAdditional information
value No Documentation Found.

Define this parameter in the request body.

$expand MailAttachments

Define this parameter in the request URI.

Request body formats

application/json, text/json

Sample:
{
  "messages": [],
  "bcc": "sample string 1",
  "body": "sample string 2",
  "canChange": true,
  "cannotChangeReason": "sample string 4",
  "cc": "sample string 5",
  "contactId": "sample string 6",
  "createDate": "sample string 7",
  "customerId": "sample string 8",
  "documentId": "sample string 9",
  "documentType": 0,
  "from": "sample string 10",
  "hasAttachments": true,
  "htmlBody": "sample string 12",
  "mailAttachments": null,
  "mailId": "45bc7164-5444-4c7d-afc1-f519be1c1945",
  "mailPriority": 0,
  "organizationId": 1,
  "rtfBody": "sample string 14",
  "state": 1,
  "subject": "sample string 15",
  "supplierId": "sample string 16",
  "to": "sample string 17",
  "username": "sample string 18"
}

application/xml, text/xml

Sample:
<MailMessage 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>
  <Body>sample string 2</Body>
  <CC>sample string 5</CC>
  <CanChange>true</CanChange>
  <CannotChangeReason>sample string 4</CannotChangeReason>
  <ContactId>sample string 6</ContactId>
  <CreateDate>sample string 7</CreateDate>
  <CustomerId>sample string 8</CustomerId>
  <DocumentId>sample string 9</DocumentId>
  <DocumentType>PurchaseOrder</DocumentType>
  <From>sample string 10</From>
  <HasAttachments>true</HasAttachments>
  <HtmlBody>sample string 12</HtmlBody>
  <MailAttachments xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.CRM.Lists" i:nil="true" />
  <MailId>45bc7164-5444-4c7d-afc1-f519be1c1945</MailId>
  <MailPriority>Normal</MailPriority>
  <Messages xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.Web.WebApi.Core.Models" />
  <OrganizationId>1</OrganizationId>
  <RtfBody>sample string 14</RtfBody>
  <State>Send</State>
  <Subject>sample string 15</Subject>
  <SupplierId>sample string 16</SupplierId>
  <To>sample string 17</To>
  <Username>sample string 18</Username>
</MailMessage>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'MailMessageProxy'.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "messages": [],
  "bcc": "sample string 1",
  "body": "sample string 2",
  "canChange": true,
  "cannotChangeReason": "sample string 4",
  "cc": "sample string 5",
  "contactId": "sample string 6",
  "createDate": "sample string 7",
  "customerId": "sample string 8",
  "documentId": "sample string 9",
  "documentType": 0,
  "from": "sample string 10",
  "hasAttachments": true,
  "htmlBody": "sample string 12",
  "mailAttachments": null,
  "mailId": "3d96e1f8-00e0-4736-ba16-d946ae66077a",
  "mailPriority": 0,
  "organizationId": 1,
  "rtfBody": "sample string 14",
  "state": 1,
  "subject": "sample string 15",
  "supplierId": "sample string 16",
  "to": "sample string 17",
  "username": "sample string 18"
}

application/xml, text/xml

Sample:
<MailMessage 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>
  <Body>sample string 2</Body>
  <CC>sample string 5</CC>
  <CanChange>true</CanChange>
  <CannotChangeReason>sample string 4</CannotChangeReason>
  <ContactId>sample string 6</ContactId>
  <CreateDate>sample string 7</CreateDate>
  <CustomerId>sample string 8</CustomerId>
  <DocumentId>sample string 9</DocumentId>
  <DocumentType>PurchaseOrder</DocumentType>
  <From>sample string 10</From>
  <HasAttachments>true</HasAttachments>
  <HtmlBody>sample string 12</HtmlBody>
  <MailAttachments xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.CRM.Lists" i:nil="true" />
  <MailId>3d96e1f8-00e0-4736-ba16-d946ae66077a</MailId>
  <MailPriority>Normal</MailPriority>
  <Messages xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.Web.WebApi.Core.Models" />
  <OrganizationId>1</OrganizationId>
  <RtfBody>sample string 14</RtfBody>
  <State>Send</State>
  <Subject>sample string 15</Subject>
  <SupplierId>sample string 16</SupplierId>
  <To>sample string 17</To>
  <Username>sample string 18</Username>
</MailMessage>