POST Email/AddEmailAttachment

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

Request Information

URI Parameters

None.

Body Parameters

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
}

application/xml, text/xml

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

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>