POST api/Contact/CreateNewContact

Request Information

URI Parameters

None.

Body Parameters

CreateContactVM
NameDescriptionTypeAdditional information
SubAccountId

string

None.

UserId

string

None.

FirstName

string

None.

LastName

string

None.

Email

string

None.

MobileNumber

string

None.

MobileCountryId

string

None.

HomeNumber

string

None.

HomeCountryId

string

None.

WorkNumber

string

None.

WorkCountryId

string

None.

CustomFieldResponses

Collection of CustomFieldSubmittedData

None.

Request Formats

application/json, text/json

Sample:
{
  "SubAccountId": "sample string 1",
  "UserId": "sample string 2",
  "FirstName": "sample string 3",
  "LastName": "sample string 4",
  "Email": "sample string 5",
  "MobileNumber": "sample string 6",
  "MobileCountryId": "sample string 7",
  "HomeNumber": "sample string 8",
  "HomeCountryId": "sample string 9",
  "WorkNumber": "sample string 10",
  "WorkCountryId": "sample string 11",
  "CustomFieldResponses": [
    {
      "FormFieldId": "sample string 1",
      "CustomFieldId": "sample string 2",
      "ResponseOptionId": "sample string 3",
      "SelectedMultipleResponseOptionIds": [
        "sample string 1",
        "sample string 2"
      ],
      "CountryId": "sample string 4"
    },
    {
      "FormFieldId": "sample string 1",
      "CustomFieldId": "sample string 2",
      "ResponseOptionId": "sample string 3",
      "SelectedMultipleResponseOptionIds": [
        "sample string 1",
        "sample string 2"
      ],
      "CountryId": "sample string 4"
    }
  ]
}

application/xml, text/xml

Sample:
<CreateContactVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel">
  <CustomFieldResponses xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Shared.Common.Models">
    <d2p1:CustomFieldSubmittedData>
      <d2p1:CountryId>sample string 4</d2p1:CountryId>
      <d2p1:CustomFieldId>sample string 2</d2p1:CustomFieldId>
      <d2p1:FormFieldId>sample string 1</d2p1:FormFieldId>
      <d2p1:ResponseOptionId>sample string 3</d2p1:ResponseOptionId>
      <d2p1:SelectedMultipleResponseOptionIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </d2p1:SelectedMultipleResponseOptionIds>
    </d2p1:CustomFieldSubmittedData>
    <d2p1:CustomFieldSubmittedData>
      <d2p1:CountryId>sample string 4</d2p1:CountryId>
      <d2p1:CustomFieldId>sample string 2</d2p1:CustomFieldId>
      <d2p1:FormFieldId>sample string 1</d2p1:FormFieldId>
      <d2p1:ResponseOptionId>sample string 3</d2p1:ResponseOptionId>
      <d2p1:SelectedMultipleResponseOptionIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </d2p1:SelectedMultipleResponseOptionIds>
    </d2p1:CustomFieldSubmittedData>
  </CustomFieldResponses>
  <Email>sample string 5</Email>
  <FirstName>sample string 3</FirstName>
  <HomeCountryId>sample string 9</HomeCountryId>
  <HomeNumber>sample string 8</HomeNumber>
  <LastName>sample string 4</LastName>
  <MobileCountryId>sample string 7</MobileCountryId>
  <MobileNumber>sample string 6</MobileNumber>
  <SubAccountId>sample string 1</SubAccountId>
  <UserId>sample string 2</UserId>
  <WorkCountryId>sample string 11</WorkCountryId>
  <WorkNumber>sample string 10</WorkNumber>
</CreateContactVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.