POST api/AutoEmails?emailType={emailType}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
emailType

integer

Required

Body Parameters

AutoEmailResponseModel
NameDescriptionTypeAdditional information
emailID

integer

None.

ClientID

integer

None.

ConsultantID

integer

None.

CampaignID

integer

None.

MessageType

integer

None.

Sender

integer

None.

strSubject

string

None.

strMessage

string

None.

EditedBy

integer

None.

EditDate

date

None.

strSender

string

None.

Attachment1

Collection of byte

None.

Attachment2

Collection of byte

None.

Attachment3

Collection of byte

None.

Attachment4

Collection of byte

None.

Filename1

string

None.

Filename2

string

None.

Filename3

string

None.

Filename4

string

None.

toList

string

None.

ccList

string

None.

Filename5

string

None.

bccList

string

None.

Request Formats

application/json, text/json

Sample:
{
  "emailID": 1,
  "ClientID": 1,
  "ConsultantID": 1,
  "CampaignID": 1,
  "MessageType": 2,
  "Sender": 1,
  "strSubject": "sample string 3",
  "strMessage": "sample string 4",
  "EditedBy": 5,
  "EditDate": "2021-06-18T20:58:07.7161722-07:00",
  "strSender": "sample string 7",
  "Attachment1": "QEA=",
  "Attachment2": "QEA=",
  "Attachment3": "QEA=",
  "Attachment4": "QEA=",
  "Filename1": "sample string 8",
  "Filename2": "sample string 9",
  "Filename3": "sample string 10",
  "Filename4": "sample string 11",
  "toList": "sample string 12",
  "ccList": "sample string 13",
  "Filename5": "sample string 14",
  "bccList": "sample string 15"
}

application/xml, text/xml

Sample:
<AutoEmailResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_10RuleAPI.Models.AutoEmail">
  <Attachment1>QEA=</Attachment1>
  <Attachment2>QEA=</Attachment2>
  <Attachment3>QEA=</Attachment3>
  <Attachment4>QEA=</Attachment4>
  <CampaignID>1</CampaignID>
  <ClientID>1</ClientID>
  <ConsultantID>1</ConsultantID>
  <EditDate>2021-06-18T20:58:07.7161722-07:00</EditDate>
  <EditedBy>5</EditedBy>
  <Filename1>sample string 8</Filename1>
  <Filename2>sample string 9</Filename2>
  <Filename3>sample string 10</Filename3>
  <Filename4>sample string 11</Filename4>
  <Filename5>sample string 14</Filename5>
  <MessageType>2</MessageType>
  <Sender>1</Sender>
  <bccList>sample string 15</bccList>
  <ccList>sample string 13</ccList>
  <emailID>1</emailID>
  <strMessage>sample string 4</strMessage>
  <strSender>sample string 7</strSender>
  <strSubject>sample string 3</strSubject>
  <toList>sample string 12</toList>
</AutoEmailResponseModel>

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 'AutoEmailResponseModel'.

Response Information

Resource Description

None.