PUT api/Contact/UpdateContactPhoneAndEmail

Request Information

URI Parameters

None.

Body Parameters

ContactUpdatePhoneAndEmailRequestViewModel
NameDescriptionTypeAdditional information
ContactId

string

None.

IsUpdateEmailToPrimary

boolean

None.

IsUpdatePhoneToPrimary

boolean

None.

IsUpdatePhoneToTextPrimary

boolean

None.

IsUpdatePhoneToVoicePrimary

boolean

None.

IsUpdatePhoneToBothTextAndVoicePrimary

boolean

None.

Email

EmailAddressViewModel

None.

Phone

PhoneViewModel

None.

IsOptOut

boolean

None.

ParentAccountId

string

Required

SubAccountId

string

Required

UserId

string

Required

Request Formats

application/json, text/json

Sample:
{
  "ContactId": "sample string 1",
  "IsUpdateEmailToPrimary": true,
  "IsUpdatePhoneToPrimary": true,
  "IsUpdatePhoneToTextPrimary": true,
  "IsUpdatePhoneToVoicePrimary": true,
  "IsUpdatePhoneToBothTextAndVoicePrimary": true,
  "Email": {
    "Id": "sample string 1",
    "Email": "sample string 2",
    "IsPrimary": true,
    "EmailLabelId": "sample string 4",
    "Label": "sample string 5",
    "IsOptOut": true,
    "Status": "None",
    "AgeConfirmationFailedOn": 7
  },
  "Phone": {
    "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
  },
  "IsOptOut": true,
  "ParentAccountId": "sample string 8",
  "SubAccountId": "sample string 9",
  "UserId": "sample string 10"
}

application/xml, text/xml

Sample:
<ContactUpdatePhoneAndEmailRequestViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel">
  <ParentAccountId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 8</ParentAccountId>
  <SubAccountId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 9</SubAccountId>
  <UserId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 10</UserId>
  <ContactId>sample string 1</ContactId>
  <Email>
    <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>
  </Email>
  <IsOptOut>true</IsOptOut>
  <IsUpdateEmailToPrimary>true</IsUpdateEmailToPrimary>
  <IsUpdatePhoneToBothTextAndVoicePrimary>true</IsUpdatePhoneToBothTextAndVoicePrimary>
  <IsUpdatePhoneToPrimary>true</IsUpdatePhoneToPrimary>
  <IsUpdatePhoneToTextPrimary>true</IsUpdatePhoneToTextPrimary>
  <IsUpdatePhoneToVoicePrimary>true</IsUpdatePhoneToVoicePrimary>
  <Phone>
    <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>
  </Phone>
</ContactUpdatePhoneAndEmailRequestViewModel>

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.