PUT api/Contact/UpdateContact?contactId={contactId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
contactId

string

Required

Body Parameters

ContactViewModel
NameDescriptionTypeAdditional information
AccountId

string

Required

ProfilePicPath

string

None.

FirstName

string

None.

LastName

string

None.

FullName

string

None.

CompanyName

string

None.

TypeId

string

Required

DateOfBirth

DateOfBirthViewModel

None.

Gender

Gender

None.

IsFavorite

boolean

None.

Phones

Collection of PhoneViewModel

None.

Emails

Collection of EmailAddressViewModel

None.

Notes

string

None.

Source

ContactSource

None.

TimeZoneType

TimeZoneType

None.

SourceId

string

None.

ImportFileName

string

None.

IsManuallyAddedFromApp

boolean

None.

TimeZoneId

string

None.

BuilderElementTypeSource

BuilderElements

None.

BuilderElementSourceId

string

None.

WebSite

string

None.

Title

string

None.

DeletedReason

ModuleDeletedReason

None.

ListIds

Collection of string

None.

InterestIds

Collection of string

None.

TagIds

Collection of string

None.

AddressSummary

Collection of AddressViewModel

None.

MessageSetting

ContactMessageSetting

None.

UserViewedSummary

Collection of UserViewedSummaryViewModel

None.

CustomFieldResponseList

Collection of CustomFieldResponsesViewModel

None.

CustomFieldResponses

Collection of Object

None.

IsViewed

boolean

None.

ParentAccountId

string

None.

Id

string

None.

CreatedDate

date

None.

UpdatedDate

date

None.

CreatedBy

string

None.

UpdatedBy

string

None.

CreatedByUserId

string

None.

UpdatedByUserId

string

None.

IsDeleted

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "AccountId": "sample string 1",
  "ProfilePicPath": "sample string 2",
  "FirstName": "sample string 3",
  "LastName": "sample string 4",
  "FullName": "sample string 5",
  "CompanyName": "sample string 6",
  "TypeId": "sample string 7",
  "DateOfBirth": {
    "DOB": "2024-11-21T08:48:38.2652055+00:00",
    "Day": 1,
    "Month": 1,
    "Year": 1
  },
  "Gender": "Male",
  "IsFavorite": true,
  "Phones": [
    {
      "Id": "sample string 1",
      "PhoneNumber": "sample string 2",
      "IsSmsAllowed": true,
      "IsVoiceAllowed": true,
      "PhoneLabelId": "sample string 5",
      "IsPrimary": true,
      "Label": "sample string 7",
      "IsOptOut": true,
      "CountryId": "sample string 9",
      "CountryCode": 10,
      "Status": "None",
      "AgeConfirmationFailedOn": 11
    },
    {
      "Id": "sample string 1",
      "PhoneNumber": "sample string 2",
      "IsSmsAllowed": true,
      "IsVoiceAllowed": true,
      "PhoneLabelId": "sample string 5",
      "IsPrimary": true,
      "Label": "sample string 7",
      "IsOptOut": true,
      "CountryId": "sample string 9",
      "CountryCode": 10,
      "Status": "None",
      "AgeConfirmationFailedOn": 11
    }
  ],
  "Emails": [
    {
      "Id": "sample string 1",
      "Email": "sample string 2",
      "IsPrimary": true,
      "EmailLabelId": "sample string 4",
      "Label": "sample string 5",
      "IsOptOut": true,
      "Status": "None",
      "AgeConfirmationFailedOn": 7
    },
    {
      "Id": "sample string 1",
      "Email": "sample string 2",
      "IsPrimary": true,
      "EmailLabelId": "sample string 4",
      "Label": "sample string 5",
      "IsOptOut": true,
      "Status": "None",
      "AgeConfirmationFailedOn": 7
    }
  ],
  "Notes": "sample string 9",
  "Source": "Import",
  "TimeZoneType": "EASTERN_STANDARD_TIME",
  "SourceId": "sample string 10",
  "ImportFileName": "sample string 11",
  "IsManuallyAddedFromApp": true,
  "TimeZoneId": "sample string 13",
  "BuilderElementTypeSource": "NA",
  "BuilderElementSourceId": "sample string 14",
  "WebSite": "sample string 15",
  "Title": "sample string 16",
  "DeletedReason": "None",
  "ListIds": [
    "sample string 1",
    "sample string 2"
  ],
  "InterestIds": [
    "sample string 1",
    "sample string 2"
  ],
  "TagIds": [
    "sample string 1",
    "sample string 2"
  ],
  "AddressSummary": [
    {
      "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"
    },
    {
      "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"
    }
  ],
  "MessageSetting": "LoveHearingFromYouMessageAnytime",
  "UserViewedSummary": [
    {
      "ViewedDate": "2024-11-21T08:48:38.2652055+00:00",
      "UserId": "sample string 2"
    },
    {
      "ViewedDate": "2024-11-21T08:48:38.2652055+00:00",
      "UserId": "sample string 2"
    }
  ],
  "CustomFieldResponseList": [
    {
      "ContactId": "sample string 1",
      "AccountId": "sample string 2",
      "CustomFieldId": "sample string 3",
      "FieldName": "sample string 4",
      "CustomFieldType": "Text",
      "SelectedMultipleOptionIds": [
        "sample string 1",
        "sample string 2"
      ],
      "FieldResponse": "sample string 5",
      "FileFieldCellValue": "sample string 6",
      "CustomFieldResponseValue": "sample string 7",
      "CountryId": "sample string 8",
      "CountryCode": 9
    },
    {
      "ContactId": "sample string 1",
      "AccountId": "sample string 2",
      "CustomFieldId": "sample string 3",
      "FieldName": "sample string 4",
      "CustomFieldType": "Text",
      "SelectedMultipleOptionIds": [
        "sample string 1",
        "sample string 2"
      ],
      "FieldResponse": "sample string 5",
      "FileFieldCellValue": "sample string 6",
      "CustomFieldResponseValue": "sample string 7",
      "CountryId": "sample string 8",
      "CountryCode": 9
    }
  ],
  "CustomFieldResponses": [
    {},
    {}
  ],
  "IsViewed": true,
  "ParentAccountId": "sample string 18",
  "Id": "sample string 19",
  "CreatedDate": "2024-11-21T08:48:38.2652055+00:00",
  "UpdatedDate": "2024-11-21T08:48:38.2652055+00:00",
  "CreatedBy": "sample string 22",
  "UpdatedBy": "sample string 23",
  "CreatedByUserId": "sample string 24",
  "UpdatedByUserId": "sample string 25",
  "IsDeleted": true
}

application/xml, text/xml

Sample:
<ContactViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel">
  <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 22</CreatedBy>
  <CreatedByUserId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 24</CreatedByUserId>
  <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">2024-11-21T08:48:38.2652055+00:00</CreatedDate>
  <Id xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 19</Id>
  <IsDeleted xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">true</IsDeleted>
  <UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 23</UpdatedBy>
  <UpdatedByUserId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 25</UpdatedByUserId>
  <UpdatedDate xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">2024-11-21T08:48:38.2652055+00:00</UpdatedDate>
  <AccountId>sample string 1</AccountId>
  <AddressSummary>
    <AddressViewModel>
      <AbbrivatedStateName>sample string 8</AbbrivatedStateName>
      <Address1>sample string 2</Address1>
      <Address2>sample string 3</Address2>
      <Address3>sample string 4</Address3>
      <AddressType>Home</AddressType>
      <City>sample string 5</City>
      <CountryId>sample string 9</CountryId>
      <CountryName>sample string 10</CountryName>
      <Id>sample string 1</Id>
      <StateId>sample string 6</StateId>
      <StateName>sample string 7</StateName>
      <ZipCode>sample string 11</ZipCode>
    </AddressViewModel>
    <AddressViewModel>
      <AbbrivatedStateName>sample string 8</AbbrivatedStateName>
      <Address1>sample string 2</Address1>
      <Address2>sample string 3</Address2>
      <Address3>sample string 4</Address3>
      <AddressType>Home</AddressType>
      <City>sample string 5</City>
      <CountryId>sample string 9</CountryId>
      <CountryName>sample string 10</CountryName>
      <Id>sample string 1</Id>
      <StateId>sample string 6</StateId>
      <StateName>sample string 7</StateName>
      <ZipCode>sample string 11</ZipCode>
    </AddressViewModel>
  </AddressSummary>
  <BuilderElementSourceId>sample string 14</BuilderElementSourceId>
  <BuilderElementTypeSource>NA</BuilderElementTypeSource>
  <CompanyName>sample string 6</CompanyName>
  <CustomFieldResponseList xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Shared.Common.Models">
    <d2p1:CustomFieldResponsesViewModel>
      <d2p1:AccountId>sample string 2</d2p1:AccountId>
      <d2p1:ContactId>sample string 1</d2p1:ContactId>
      <d2p1:CountryCode>9</d2p1:CountryCode>
      <d2p1:CountryId>sample string 8</d2p1:CountryId>
      <d2p1:CustomFieldId>sample string 3</d2p1:CustomFieldId>
      <d2p1:CustomFieldResponseValue>sample string 7</d2p1:CustomFieldResponseValue>
      <d2p1:CustomFieldType>Text</d2p1:CustomFieldType>
      <d2p1:FieldName>sample string 4</d2p1:FieldName>
      <d2p1:FieldResponse>sample string 5</d2p1:FieldResponse>
      <d2p1:FileFieldCellValue>sample string 6</d2p1:FileFieldCellValue>
      <d2p1:SelectedMultipleOptionIds 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:SelectedMultipleOptionIds>
    </d2p1:CustomFieldResponsesViewModel>
    <d2p1:CustomFieldResponsesViewModel>
      <d2p1:AccountId>sample string 2</d2p1:AccountId>
      <d2p1:ContactId>sample string 1</d2p1:ContactId>
      <d2p1:CountryCode>9</d2p1:CountryCode>
      <d2p1:CountryId>sample string 8</d2p1:CountryId>
      <d2p1:CustomFieldId>sample string 3</d2p1:CustomFieldId>
      <d2p1:CustomFieldResponseValue>sample string 7</d2p1:CustomFieldResponseValue>
      <d2p1:CustomFieldType>Text</d2p1:CustomFieldType>
      <d2p1:FieldName>sample string 4</d2p1:FieldName>
      <d2p1:FieldResponse>sample string 5</d2p1:FieldResponse>
      <d2p1:FileFieldCellValue>sample string 6</d2p1:FileFieldCellValue>
      <d2p1:SelectedMultipleOptionIds 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:SelectedMultipleOptionIds>
    </d2p1:CustomFieldResponsesViewModel>
  </CustomFieldResponseList>
  <CustomFieldResponses xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:anyType />
    <d2p1:anyType />
  </CustomFieldResponses>
  <DateOfBirth>
    <DOB>2024-11-21T08:48:38.2652055+00:00</DOB>
    <Day>1</Day>
    <Month>1</Month>
    <Year>1</Year>
  </DateOfBirth>
  <DeletedReason>None</DeletedReason>
  <Emails>
    <EmailAddressViewModel>
      <AgeConfirmationFailedOn>7</AgeConfirmationFailedOn>
      <Email>sample string 2</Email>
      <EmailLabelId>sample string 4</EmailLabelId>
      <Id>sample string 1</Id>
      <IsOptOut>true</IsOptOut>
      <IsPrimary>true</IsPrimary>
      <Label>sample string 5</Label>
      <Status>None</Status>
    </EmailAddressViewModel>
    <EmailAddressViewModel>
      <AgeConfirmationFailedOn>7</AgeConfirmationFailedOn>
      <Email>sample string 2</Email>
      <EmailLabelId>sample string 4</EmailLabelId>
      <Id>sample string 1</Id>
      <IsOptOut>true</IsOptOut>
      <IsPrimary>true</IsPrimary>
      <Label>sample string 5</Label>
      <Status>None</Status>
    </EmailAddressViewModel>
  </Emails>
  <FirstName>sample string 3</FirstName>
  <FullName>sample string 5</FullName>
  <Gender>Male</Gender>
  <ImportFileName>sample string 11</ImportFileName>
  <InterestIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </InterestIds>
  <IsFavorite>true</IsFavorite>
  <IsManuallyAddedFromApp>true</IsManuallyAddedFromApp>
  <IsViewed>true</IsViewed>
  <LastName>sample string 4</LastName>
  <ListIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ListIds>
  <MessageSetting>LoveHearingFromYouMessageAnytime</MessageSetting>
  <Notes>sample string 9</Notes>
  <ParentAccountId>sample string 18</ParentAccountId>
  <Phones>
    <PhoneViewModel>
      <AgeConfirmationFailedOn>11</AgeConfirmationFailedOn>
      <CountryCode>10</CountryCode>
      <CountryId>sample string 9</CountryId>
      <Id>sample string 1</Id>
      <IsOptOut>true</IsOptOut>
      <IsPrimary>true</IsPrimary>
      <IsSmsAllowed>true</IsSmsAllowed>
      <IsVoiceAllowed>true</IsVoiceAllowed>
      <Label>sample string 7</Label>
      <PhoneLabelId>sample string 5</PhoneLabelId>
      <PhoneNumber>sample string 2</PhoneNumber>
      <Status>None</Status>
    </PhoneViewModel>
    <PhoneViewModel>
      <AgeConfirmationFailedOn>11</AgeConfirmationFailedOn>
      <CountryCode>10</CountryCode>
      <CountryId>sample string 9</CountryId>
      <Id>sample string 1</Id>
      <IsOptOut>true</IsOptOut>
      <IsPrimary>true</IsPrimary>
      <IsSmsAllowed>true</IsSmsAllowed>
      <IsVoiceAllowed>true</IsVoiceAllowed>
      <Label>sample string 7</Label>
      <PhoneLabelId>sample string 5</PhoneLabelId>
      <PhoneNumber>sample string 2</PhoneNumber>
      <Status>None</Status>
    </PhoneViewModel>
  </Phones>
  <ProfilePicPath>sample string 2</ProfilePicPath>
  <Source>Import</Source>
  <SourceId>sample string 10</SourceId>
  <TagIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </TagIds>
  <TimeZoneId>sample string 13</TimeZoneId>
  <TimeZoneType>EASTERN_STANDARD_TIME</TimeZoneType>
  <Title>sample string 16</Title>
  <TypeId>sample string 7</TypeId>
  <UserViewedSummary>
    <UserViewedSummaryViewModel>
      <UserId>sample string 2</UserId>
      <ViewedDate>2024-11-21T08:48:38.2652055+00:00</ViewedDate>
    </UserViewedSummaryViewModel>
    <UserViewedSummaryViewModel>
      <UserId>sample string 2</UserId>
      <ViewedDate>2024-11-21T08:48:38.2652055+00:00</ViewedDate>
    </UserViewedSummaryViewModel>
  </UserViewedSummary>
  <WebSite>sample string 15</WebSite>
</ContactViewModel>

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.