POST api/postcontact

Request Information

URI Parameters

None.

Body Parameters

ContactModel
NameDescriptionTypeAdditional information
ContactId

integer

None.

SponsorId

integer

None.

ContactListId

integer

None.

FirstName

string

None.

LastName

string

None.

Address

string

None.

City

string

None.

State

string

None.

ZipCode

string

None.

Email

string

None.

Telephone

string

None.

CustomData

Collection of CustomDataModel

None.

Gender

string

None.

BirthDate

date

None.

GenericNumber

integer

None.

AcquiredDate

date

None.

Optin

boolean

None.

OptinDate

date

None.

SmsOptin

boolean

None.

SmsConfirmed

date

None.

EmailVerified

date

None.

EmailConfirmed

date

None.

IpAddress

string

None.

Notes

Collection of ContactNoteModel

None.

ContactStatus

integer

None.

Status

string

None.

Error

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ContactId": 1,
  "SponsorId": 2,
  "ContactListId": 3,
  "FirstName": "sample string 4",
  "LastName": "sample string 5",
  "Address": "sample string 6",
  "City": "sample string 7",
  "State": "sample string 8",
  "ZipCode": "sample string 9",
  "Email": "sample string 10",
  "Telephone": "sample string 11",
  "CustomData": [
    {
      "Name": "sample string 1",
      "Value": "sample string 2"
    },
    {
      "Name": "sample string 1",
      "Value": "sample string 2"
    }
  ],
  "Gender": "sample string 12",
  "BirthDate": "2019-07-18T21:14:27.9446505+00:00",
  "GenericNumber": 1,
  "AcquiredDate": "2019-07-18T21:14:27.9446505+00:00",
  "Optin": true,
  "OptinDate": "2019-07-18T21:14:27.9446505+00:00",
  "SmsOptin": true,
  "SmsConfirmed": "2019-07-18T21:14:27.9446505+00:00",
  "EmailVerified": "2019-07-18T21:14:27.9446505+00:00",
  "EmailConfirmed": "2019-07-18T21:14:27.9446505+00:00",
  "IpAddress": "sample string 14",
  "Notes": [
    {
      "ContactNoteId": "117543ee-ea4b-44b4-9b82-eb16af49ec10",
      "Notes": "sample string 2",
      "NoteDate": "2019-07-18T21:14:27.9446505+00:00"
    },
    {
      "ContactNoteId": "117543ee-ea4b-44b4-9b82-eb16af49ec10",
      "Notes": "sample string 2",
      "NoteDate": "2019-07-18T21:14:27.9446505+00:00"
    }
  ],
  "ContactStatus": 15,
  "Status": "sample string 16",
  "Error": "sample string 17"
}

application/xml, text/xml

Sample:
<ContactModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Rebelity.CM.Model">
  <AcquiredDate>2019-07-18T21:14:27.9446505+00:00</AcquiredDate>
  <Address>sample string 6</Address>
  <BirthDate>2019-07-18T21:14:27.9446505+00:00</BirthDate>
  <City>sample string 7</City>
  <ContactId>1</ContactId>
  <ContactListId>3</ContactListId>
  <ContactStatus>15</ContactStatus>
  <CustomData>
    <CustomDataModel>
      <Name>sample string 1</Name>
      <Value>sample string 2</Value>
    </CustomDataModel>
    <CustomDataModel>
      <Name>sample string 1</Name>
      <Value>sample string 2</Value>
    </CustomDataModel>
  </CustomData>
  <Email>sample string 10</Email>
  <EmailConfirmed>2019-07-18T21:14:27.9446505+00:00</EmailConfirmed>
  <EmailVerified>2019-07-18T21:14:27.9446505+00:00</EmailVerified>
  <Error>sample string 17</Error>
  <FirstName>sample string 4</FirstName>
  <Gender>sample string 12</Gender>
  <GenericNumber>1</GenericNumber>
  <IpAddress>sample string 14</IpAddress>
  <LastName>sample string 5</LastName>
  <Notes>
    <ContactNoteModel>
      <ContactNoteId>117543ee-ea4b-44b4-9b82-eb16af49ec10</ContactNoteId>
      <NoteDate>2019-07-18T21:14:27.9446505+00:00</NoteDate>
      <Notes>sample string 2</Notes>
    </ContactNoteModel>
    <ContactNoteModel>
      <ContactNoteId>117543ee-ea4b-44b4-9b82-eb16af49ec10</ContactNoteId>
      <NoteDate>2019-07-18T21:14:27.9446505+00:00</NoteDate>
      <Notes>sample string 2</Notes>
    </ContactNoteModel>
  </Notes>
  <Optin>true</Optin>
  <OptinDate>2019-07-18T21:14:27.9446505+00:00</OptinDate>
  <SmsConfirmed>2019-07-18T21:14:27.9446505+00:00</SmsConfirmed>
  <SmsOptin>true</SmsOptin>
  <SponsorId>2</SponsorId>
  <State>sample string 8</State>
  <Status>sample string 16</Status>
  <Telephone>sample string 11</Telephone>
  <ZipCode>sample string 9</ZipCode>
</ContactModel>

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

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.