POST Account/EmailRegistration

Request Information

URI Parameters

None.

Body Parameters

EmailRegistrationModel
NameDescriptionTypeAdditional information
FirstName

string

Required

LastName

string

Required

EmployerName

string

Required

PhoneNumber

string

Required

EmailAddress

string

Required

Comments

string

None.

ID

integer

None.

FromAddress

string

None.

ToAddress

string

None.

Subject

string

None.

IsBodyHtml

boolean

None.

BodyHeader

string

None.

Body

string

None.

BodyFooter

string

None.

Bcc

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "FirstName": "sample string 1",
  "LastName": "sample string 2",
  "EmployerName": "sample string 3",
  "PhoneNumber": "sample string 4",
  "EmailAddress": "sample string 5",
  "Comments": "sample string 6",
  "ID": 7,
  "FromAddress": "sample string 8",
  "ToAddress": "sample string 9",
  "Subject": "sample string 10",
  "IsBodyHtml": true,
  "BodyHeader": "sample string 12",
  "Body": "sample string 13",
  "BodyFooter": "sample string 14",
  "Bcc": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<EmailRegistrationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VHCSAPIModels.Models">
  <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>
  <Body>sample string 13</Body>
  <BodyFooter>sample string 14</BodyFooter>
  <BodyHeader>sample string 12</BodyHeader>
  <FromAddress>sample string 8</FromAddress>
  <ID>7</ID>
  <IsBodyHtml>true</IsBodyHtml>
  <Subject>sample string 10</Subject>
  <ToAddress>sample string 9</ToAddress>
  <Comments>sample string 6</Comments>
  <EmailAddress>sample string 5</EmailAddress>
  <EmployerName>sample string 3</EmployerName>
  <FirstName>sample string 1</FirstName>
  <LastName>sample string 2</LastName>
  <PhoneNumber>sample string 4</PhoneNumber>
</EmailRegistrationModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.