POST Email/AddEmailAttachments

Voeg een nieuwe bijlages toe aan een email zonder de byte array, voor de byte array zie eindpunt /AddEmailAttachmentByteArray.

Request Information

URI Parameters

None.

Body Parameters

Collection of EmailAttachment
NameDescriptionTypeAdditional information
Id

Bijlage ID

integer

None.

EmailMessageId

Aan welke email is de bijlage gekoppeld

integer

Required

Name

Bestandsnaam

string

None.

ContentId

Aan welk ContentID is de bijlage gekoppeld

string

None.

IsEmbeddedContent

Content is embedded

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "EmailMessageId": 2,
    "Name": "sample string 3",
    "ContentId": "sample string 4",
    "IsEmbeddedContent": true
  },
  {
    "Id": 1,
    "EmailMessageId": 2,
    "Name": "sample string 3",
    "ContentId": "sample string 4",
    "IsEmbeddedContent": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfEmailAttachment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Models">
  <EmailAttachment>
    <ContentId>sample string 4</ContentId>
    <EmailMessageId>2</EmailMessageId>
    <Id>1</Id>
    <IsEmbeddedContent>true</IsEmbeddedContent>
    <Name>sample string 3</Name>
  </EmailAttachment>
  <EmailAttachment>
    <ContentId>sample string 4</ContentId>
    <EmailMessageId>2</EmailMessageId>
    <Id>1</Id>
    <IsEmbeddedContent>true</IsEmbeddedContent>
    <Name>sample string 3</Name>
  </EmailAttachment>
</ArrayOfEmailAttachment>

Response Information

Resource Description

Logic4ResponseListOfEmailAttachment
NameDescriptionTypeAdditional information
Records

Collection of EmailAttachment

None.

RecordsCounter

integer

None.

ValidationMessages

Eventuele foutmeldingen

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Records": [
    {
      "Id": 1,
      "EmailMessageId": 2,
      "Name": "sample string 3",
      "ContentId": "sample string 4",
      "IsEmbeddedContent": true
    },
    {
      "Id": 1,
      "EmailMessageId": 2,
      "Name": "sample string 3",
      "ContentId": "sample string 4",
      "IsEmbeddedContent": true
    }
  ],
  "RecordsCounter": 2,
  "ValidationMessages": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<Logic4ResponseListOfEmailAttachmentLnN1pw8Y 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>
  <Records xmlns:d2p1="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Models">
    <d2p1:EmailAttachment>
      <d2p1:ContentId>sample string 4</d2p1:ContentId>
      <d2p1:EmailMessageId>2</d2p1:EmailMessageId>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsEmbeddedContent>true</d2p1:IsEmbeddedContent>
      <d2p1:Name>sample string 3</d2p1:Name>
    </d2p1:EmailAttachment>
    <d2p1:EmailAttachment>
      <d2p1:ContentId>sample string 4</d2p1:ContentId>
      <d2p1:EmailMessageId>2</d2p1:EmailMessageId>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsEmbeddedContent>true</d2p1:IsEmbeddedContent>
      <d2p1:Name>sample string 3</d2p1:Name>
    </d2p1:EmailAttachment>
  </Records>
</Logic4ResponseListOfEmailAttachmentLnN1pw8Y>