POST api/Contact/UpdateContactPhones

Request Information

URI Parameters

None.

Body Parameters

ContactPhonesRequestVM
NameDescriptionTypeAdditional information
ContactId

string

Required

AccountId

string

Required

Phones

Collection of PhoneViewModel

None.

UserId

string

Required

LoggedInSubAccountId

string

Required

Request Formats

application/json, text/json

Sample:
{
  "ContactId": "sample string 1",
  "AccountId": "sample string 2",
  "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
    }
  ],
  "UserId": "sample string 3",
  "LoggedInSubAccountId": "sample string 4"
}

application/xml, text/xml

Sample:
<ContactPhonesRequestVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Business.Service.Services.RequestViewModels.Contact">
  <AccountId>sample string 2</AccountId>
  <ContactId>sample string 1</ContactId>
  <LoggedInSubAccountId>sample string 4</LoggedInSubAccountId>
  <Phones xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel">
    <d2p1:PhoneViewModel>
      <d2p1:AgeConfirmationFailedOn>11</d2p1:AgeConfirmationFailedOn>
      <d2p1:CountryCode>10</d2p1:CountryCode>
      <d2p1:CountryId>sample string 9</d2p1:CountryId>
      <d2p1:Id>sample string 1</d2p1:Id>
      <d2p1:IsOptOut>true</d2p1:IsOptOut>
      <d2p1:IsPrimary>true</d2p1:IsPrimary>
      <d2p1:IsSmsAllowed>true</d2p1:IsSmsAllowed>
      <d2p1:IsVoiceAllowed>true</d2p1:IsVoiceAllowed>
      <d2p1:Label>sample string 7</d2p1:Label>
      <d2p1:PhoneLabelId>sample string 5</d2p1:PhoneLabelId>
      <d2p1:PhoneNumber>sample string 2</d2p1:PhoneNumber>
      <d2p1:Status>None</d2p1:Status>
    </d2p1:PhoneViewModel>
    <d2p1:PhoneViewModel>
      <d2p1:AgeConfirmationFailedOn>11</d2p1:AgeConfirmationFailedOn>
      <d2p1:CountryCode>10</d2p1:CountryCode>
      <d2p1:CountryId>sample string 9</d2p1:CountryId>
      <d2p1:Id>sample string 1</d2p1:Id>
      <d2p1:IsOptOut>true</d2p1:IsOptOut>
      <d2p1:IsPrimary>true</d2p1:IsPrimary>
      <d2p1:IsSmsAllowed>true</d2p1:IsSmsAllowed>
      <d2p1:IsVoiceAllowed>true</d2p1:IsVoiceAllowed>
      <d2p1:Label>sample string 7</d2p1:Label>
      <d2p1:PhoneLabelId>sample string 5</d2p1:PhoneLabelId>
      <d2p1:PhoneNumber>sample string 2</d2p1:PhoneNumber>
      <d2p1:Status>None</d2p1:Status>
    </d2p1:PhoneViewModel>
  </Phones>
  <UserId>sample string 3</UserId>
</ContactPhonesRequestVM>

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.