POST api/Email

Request Information

URI Parameters

None.

Body Parameters

EmailModel
NameDescriptionTypeAdditional information
From

string

None.

AccountId

integer

None.

To

Collection of string

None.

Cc

Collection of string

None.

Bcc

Collection of string

None.

Subject

string

None.

Content

string

None.

TemplateId

integer

None.

PlaceholderList

Collection of Pair of string [key] and string [value]

None.

CreatedBy

string

None.

SendAt

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "From": "sample string 1",
  "AccountId": 2,
  "To": [
    "sample string 1",
    "sample string 2"
  ],
  "Cc": [
    "sample string 1",
    "sample string 2"
  ],
  "Bcc": [
    "sample string 1",
    "sample string 2"
  ],
  "Subject": "sample string 3",
  "Content": "sample string 4",
  "TemplateId": 5,
  "PlaceholderList": [
    {
      "Key": "sample string 1",
      "Value": "sample string 2"
    },
    {
      "Key": "sample string 1",
      "Value": "sample string 2"
    }
  ],
  "CreatedBy": "sample string 6",
  "SendAt": 7
}

application/xml, text/xml

Sample:
<EmailModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Walsh.Service.Models.Email">
  <AccountId>2</AccountId>
  <Bcc xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Bcc>
  <Cc xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Cc>
  <Content>sample string 4</Content>
  <CreatedBy>sample string 6</CreatedBy>
  <From>sample string 1</From>
  <PlaceholderList xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
    <d2p1:KeyValuePairOfstringstring>
      <d2p1:key>sample string 1</d2p1:key>
      <d2p1:value>sample string 2</d2p1:value>
    </d2p1:KeyValuePairOfstringstring>
    <d2p1:KeyValuePairOfstringstring>
      <d2p1:key>sample string 1</d2p1:key>
      <d2p1:value>sample string 2</d2p1:value>
    </d2p1:KeyValuePairOfstringstring>
  </PlaceholderList>
  <SendAt>7</SendAt>
  <Subject>sample string 3</Subject>
  <TemplateId>5</TemplateId>
  <To xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </To>
</EmailModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>