POST Email/AddEmailMessage

Voeg een nieuwe email toe in de concepten map van de gebruiker.

Request Information

URI Parameters

None.

Body Parameters

EmailMessage
NameDescriptionTypeAdditional information
Id

Id van het emailbericht, als deze gevuld is wordt bij het toevoegen van een nieuwe email de oude email overschreven zie eindpunt /Email/AddUpdateEmailMessage

integer

None.

Subject

Onderwerp

string

None.

EmailBody

Wordt alleen gevuld als dit is aangegeven in het filter

string

None.

IsHTMLBody

Bestaat de body uit HTML

boolean

None.

BoxId

EmailboxId

integer

None.

DateTimeSend

Verstuurd op

date

None.

IsInbound

Verstuurd of ontvangen

boolean

None.

IsRead

Is gelezen

boolean

None.

IsReplyedOn

Beantwoord op

date

None.

IsForwardedOn

Doorgestuurd op

date

None.

Status

EmailStatus

EmailMessageStatus

None.

ToEmailAddresses

Verstuurd naar emailadressen

Collection of EmailAddress

Required

FromEmailAddress

Ontvangen van

EmailAddress

None.

CCEmailAddresses

CC emailadressen

Collection of EmailAddress

None.

BCCEmailAddresses

BCC emailadressen

Collection of EmailAddress

None.

HasAttachment

Email heeft bijlage(s)

boolean

None.

PreviousEmailId

Vul deze waarde als IsReplyedOn of IsForwardedOn gevuld is, bij het oude mailtje wordt deze waarde gevuld

integer

None.

CanDelete

Gebruiker mag deze email verwijderen

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Subject": "sample string 2",
  "EmailBody": "sample string 3",
  "IsHTMLBody": true,
  "BoxId": 5,
  "DateTimeSend": "2020-09-26T01:43:52.4750725+02:00",
  "IsInbound": true,
  "IsRead": true,
  "IsReplyedOn": "2020-09-26T01:43:52.4750725+02:00",
  "IsForwardedOn": "2020-09-26T01:43:52.4750725+02:00",
  "Status": {
    "Id": 1,
    "Name": "sample string 2",
    "Color": 3
  },
  "ToEmailAddresses": [
    {
      "Name": "sample string 1",
      "Email": "sample string 2"
    },
    {
      "Name": "sample string 1",
      "Email": "sample string 2"
    }
  ],
  "FromEmailAddress": {
    "Name": "sample string 1",
    "Email": "sample string 2"
  },
  "CCEmailAddresses": [
    {
      "Name": "sample string 1",
      "Email": "sample string 2"
    },
    {
      "Name": "sample string 1",
      "Email": "sample string 2"
    }
  ],
  "BCCEmailAddresses": [
    {
      "Name": "sample string 1",
      "Email": "sample string 2"
    },
    {
      "Name": "sample string 1",
      "Email": "sample string 2"
    }
  ],
  "HasAttachment": true,
  "PreviousEmailId": 1,
  "CanDelete": true
}

application/xml, text/xml

Sample:
<EmailMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Models">
  <BCCEmailAddresses>
    <EmailAddress>
      <Email>sample string 2</Email>
      <Name>sample string 1</Name>
    </EmailAddress>
    <EmailAddress>
      <Email>sample string 2</Email>
      <Name>sample string 1</Name>
    </EmailAddress>
  </BCCEmailAddresses>
  <BoxId>5</BoxId>
  <CCEmailAddresses>
    <EmailAddress>
      <Email>sample string 2</Email>
      <Name>sample string 1</Name>
    </EmailAddress>
    <EmailAddress>
      <Email>sample string 2</Email>
      <Name>sample string 1</Name>
    </EmailAddress>
  </CCEmailAddresses>
  <CanDelete>true</CanDelete>
  <DateTimeSend>2020-09-26T01:43:52.4750725+02:00</DateTimeSend>
  <EmailBody>sample string 3</EmailBody>
  <FromEmailAddress>
    <Email>sample string 2</Email>
    <Name>sample string 1</Name>
  </FromEmailAddress>
  <HasAttachment>true</HasAttachment>
  <Id>1</Id>
  <IsForwardedOn>2020-09-26T01:43:52.4750725+02:00</IsForwardedOn>
  <IsHTMLBody>true</IsHTMLBody>
  <IsInbound>true</IsInbound>
  <IsRead>true</IsRead>
  <IsReplyedOn>2020-09-26T01:43:52.4750725+02:00</IsReplyedOn>
  <PreviousEmailId>1</PreviousEmailId>
  <Status>
    <Color>3</Color>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </Status>
  <Subject>sample string 2</Subject>
  <ToEmailAddresses>
    <EmailAddress>
      <Email>sample string 2</Email>
      <Name>sample string 1</Name>
    </EmailAddress>
    <EmailAddress>
      <Email>sample string 2</Email>
      <Name>sample string 1</Name>
    </EmailAddress>
  </ToEmailAddresses>
</EmailMessage>

Response Information

Resource Description

Logic4ResponseOfInt32
NameDescriptionTypeAdditional information
Value

integer

None.

ValidationMessages

Eventuele foutmeldingen

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Value": 1,
  "ValidationMessages": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<Logic4ResponseOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.ResponseModels">
  <ValidationMessages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ValidationMessages>
  <Value>1</Value>
</Logic4ResponseOfint>