POST api/ContactUs/MailingList

Request Information

URI Parameters

None.

Body Parameters

MailingListItemViewModel
NameDescriptionTypeAdditional information
FirstName

string

Required

Max length: 35

LastName

string

Required

Max length: 35

Email

string

Required

Max length: 100

UserType

UserType

Required

Captcha

string

Required

Request Formats

application/json, text/json

Sample:
{
  "FirstName": "sample string 1",
  "LastName": "sample string 2",
  "Email": "sample string 3",
  "UserType": 0,
  "Captcha": "sample string 4"
}

application/xml, text/xml

Sample:
<MailingListItemViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Portal.UI.Models">
  <Captcha>sample string 4</Captcha>
  <Email>sample string 3</Email>
  <FirstName>sample string 1</FirstName>
  <LastName>sample string 2</LastName>
  <UserType>Anonymous</UserType>
</MailingListItemViewModel>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.