POST api/Contact/CreateNewContact

Request Information

URI Parameters

None.

Body Parameters

CreateNewContactRequest
NameDescriptionTypeAdditional information
TypeId

string

None.

CompanyName

string

None.

DOB

DateOfBirthViewModel

None.

Address

AddressViewModel

None.

Website

string

None.

OtherNumber

string

None.

OtherNumberCountryId

string

None.

OtherEmail

string

None.

Title

string

None.

WorkEmail

string

None.

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:
{
  "TypeId": "sample string 1",
  "CompanyName": "sample string 2",
  "DOB": {
    "DOB": "2024-11-21T07:20:26.7552864+00:00",
    "Day": 1,
    "Month": 1,
    "Year": 1
  },
  "Address": {
    "Id": "sample string 1",
    "AddressType": "Home",
    "Address1": "sample string 2",
    "Address2": "sample string 3",
    "Address3": "sample string 4",
    "City": "sample string 5",
    "StateId": "sample string 6",
    "StateName": "sample string 7",
    "AbbrivatedStateName": "sample string 8",
    "CountryId": "sample string 9",
    "CountryName": "sample string 10",
    "ZipCode": "sample string 11"
  },
  "Website": "sample string 3",
  "OtherNumber": "sample string 4",
  "OtherNumberCountryId": "sample string 5",
  "OtherEmail": "sample string 6",
  "Title": "sample string 7",
  "WorkEmail": "sample string 8",
  "SubAccountId": "sample string 9",
  "UserId": "sample string 10",
  "FirstName": "sample string 11",
  "LastName": "sample string 12",
  "Email": "sample string 13",
  "MobileNumber": "sample string 14",
  "MobileCountryId": "sample string 15",
  "HomeNumber": "sample string 16",
  "HomeCountryId": "sample string 17",
  "WorkNumber": "sample string 18",
  "WorkCountryId": "sample string 19",
  "CustomFieldResponses": [
    {
      "FormFieldId": "sample string 1",
      "CustomFieldId": "sample string 2",
      "ResponseOptionId": "sample string 3",
      "SelectedMultipleResponseOptionIds": [
        "sample string 1",
        "sample string 2"
      ],
      "CountryId": "sample string 4",
      "ResponseValue": "sample string 5"
    },
    {
      "FormFieldId": "sample string 1",
      "CustomFieldId": "sample string 2",
      "ResponseOptionId": "sample string 3",
      "SelectedMultipleResponseOptionIds": [
        "sample string 1",
        "sample string 2"
      ],
      "CountryId": "sample string 4",
      "ResponseValue": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<CreateNewContactRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Business.Service.Services.RequestViewModels.Contact">
  <CustomFieldResponses xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Shared.Common.Models" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel">
    <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:ResponseValue>sample string 5</d2p1:ResponseValue>
      <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:ResponseValue>sample string 5</d2p1:ResponseValue>
      <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 xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel">sample string 13</Email>
  <FirstName xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel">sample string 11</FirstName>
  <HomeCountryId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel">sample string 17</HomeCountryId>
  <HomeNumber xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel">sample string 16</HomeNumber>
  <LastName xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel">sample string 12</LastName>
  <MobileCountryId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel">sample string 15</MobileCountryId>
  <MobileNumber xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel">sample string 14</MobileNumber>
  <SubAccountId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel">sample string 9</SubAccountId>
  <UserId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel">sample string 10</UserId>
  <WorkCountryId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel">sample string 19</WorkCountryId>
  <WorkNumber xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel">sample string 18</WorkNumber>
  <Address xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel">
    <d2p1:AbbrivatedStateName>sample string 8</d2p1:AbbrivatedStateName>
    <d2p1:Address1>sample string 2</d2p1:Address1>
    <d2p1:Address2>sample string 3</d2p1:Address2>
    <d2p1:Address3>sample string 4</d2p1:Address3>
    <d2p1:AddressType>Home</d2p1:AddressType>
    <d2p1:City>sample string 5</d2p1:City>
    <d2p1:CountryId>sample string 9</d2p1:CountryId>
    <d2p1:CountryName>sample string 10</d2p1:CountryName>
    <d2p1:Id>sample string 1</d2p1:Id>
    <d2p1:StateId>sample string 6</d2p1:StateId>
    <d2p1:StateName>sample string 7</d2p1:StateName>
    <d2p1:ZipCode>sample string 11</d2p1:ZipCode>
  </Address>
  <CompanyName>sample string 2</CompanyName>
  <DOB xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel">
    <d2p1:DOB>2024-11-21T07:20:26.7552864+00:00</d2p1:DOB>
    <d2p1:Day>1</d2p1:Day>
    <d2p1:Month>1</d2p1:Month>
    <d2p1:Year>1</d2p1:Year>
  </DOB>
  <OtherEmail>sample string 6</OtherEmail>
  <OtherNumber>sample string 4</OtherNumber>
  <OtherNumberCountryId>sample string 5</OtherNumberCountryId>
  <Title>sample string 7</Title>
  <TypeId>sample string 1</TypeId>
  <Website>sample string 3</Website>
  <WorkEmail>sample string 8</WorkEmail>
</CreateNewContactRequest>

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.