PUT api/UpdateProfile/UpdateCommunicationPrefrences

Request Information

URI Parameters

None.

Body Parameters

UpdatePreferencesRequestVM
NameDescriptionTypeAdditional information
ContactId

string

Required

ParentAccountId

string

Required

AccountId

string

Required

FirstName

string

None.

LastName

string

None.

CountryId

string

None.

StateId

string

None.

Address1

string

None.

Address2

string

None.

City

string

None.

ZipCode

string

None.

DateOfBirth

DateOfBirthViewModel

None.

TimeZoneId

string

None.

InterestIds

Collection of string

None.

SubscriptionIds

Collection of string

None.

CommunicationFrequencySettings

CommunicatonFrequencySettingsVM

None.

Mobile

PhoneUpdateRequestVM

None.

Email

EmailUpadateRequestVM

None.

IsUnSubscribe

boolean

None.

NumberOfDaysForUnSubscribe

integer

None.

ResubscribeEmail

boolean

None.

ResubscribePhone

boolean

None.

UpdateAddress

boolean

None.

UnsubscribeInitiatedModuleId

string

None.

UnSubscribeForSendSummaryId

string

None.

InitiatedFromModule

UnSubscribeInitiatedModule

None.

Request Formats

application/json, text/json

Sample:
{
  "ContactId": "sample string 1",
  "ParentAccountId": "sample string 2",
  "AccountId": "sample string 3",
  "FirstName": "sample string 4",
  "LastName": "sample string 5",
  "CountryId": "sample string 6",
  "StateId": "sample string 7",
  "Address1": "sample string 8",
  "Address2": "sample string 9",
  "City": "sample string 10",
  "ZipCode": "sample string 11",
  "DateOfBirth": {
    "DOB": "2024-11-21T08:51:33.638734+00:00",
    "Day": 1,
    "Month": 1,
    "Year": 1
  },
  "TimeZoneId": "sample string 12",
  "InterestIds": [
    "sample string 1",
    "sample string 2"
  ],
  "SubscriptionIds": [
    "sample string 1",
    "sample string 2"
  ],
  "CommunicationFrequencySettings": {
    "IntervalLength": 1,
    "IntervalType": "Week"
  },
  "Mobile": {
    "Id": "sample string 1",
    "MobileNumber": "sample string 2",
    "MobileCountryCode": 3,
    "CountryId": "sample string 4"
  },
  "Email": {
    "Id": "sample string 1",
    "EmailAddress": "sample string 2"
  },
  "IsUnSubscribe": true,
  "NumberOfDaysForUnSubscribe": 14,
  "ResubscribeEmail": true,
  "ResubscribePhone": true,
  "UpdateAddress": true,
  "UnsubscribeInitiatedModuleId": "sample string 18",
  "UnSubscribeForSendSummaryId": "sample string 19",
  "InitiatedFromModule": "None"
}

application/xml, text/xml

Sample:
<UpdatePreferencesRequestVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Business.Service.Services.RequestViewModels.UnsubscribeViewModels">
  <AccountId>sample string 3</AccountId>
  <Address1>sample string 8</Address1>
  <Address2>sample string 9</Address2>
  <City>sample string 10</City>
  <CommunicationFrequencySettings>
    <IntervalLength>1</IntervalLength>
    <IntervalType>Week</IntervalType>
  </CommunicationFrequencySettings>
  <ContactId>sample string 1</ContactId>
  <CountryId>sample string 6</CountryId>
  <DateOfBirth xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel">
    <d2p1:DOB>2024-11-21T08:51:33.638734+00:00</d2p1:DOB>
    <d2p1:Day>1</d2p1:Day>
    <d2p1:Month>1</d2p1:Month>
    <d2p1:Year>1</d2p1:Year>
  </DateOfBirth>
  <Email>
    <EmailAddress>sample string 2</EmailAddress>
    <Id>sample string 1</Id>
  </Email>
  <FirstName>sample string 4</FirstName>
  <InitiatedFromModule>None</InitiatedFromModule>
  <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>
  <IsUnSubscribe>true</IsUnSubscribe>
  <LastName>sample string 5</LastName>
  <Mobile>
    <CountryId>sample string 4</CountryId>
    <Id>sample string 1</Id>
    <MobileCountryCode>3</MobileCountryCode>
    <MobileNumber>sample string 2</MobileNumber>
  </Mobile>
  <NumberOfDaysForUnSubscribe>14</NumberOfDaysForUnSubscribe>
  <ParentAccountId>sample string 2</ParentAccountId>
  <ResubscribeEmail>true</ResubscribeEmail>
  <ResubscribePhone>true</ResubscribePhone>
  <StateId>sample string 7</StateId>
  <SubscriptionIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </SubscriptionIds>
  <TimeZoneId>sample string 12</TimeZoneId>
  <UnSubscribeForSendSummaryId>sample string 19</UnSubscribeForSendSummaryId>
  <UnsubscribeInitiatedModuleId>sample string 18</UnsubscribeInitiatedModuleId>
  <UpdateAddress>true</UpdateAddress>
  <ZipCode>sample string 11</ZipCode>
</UpdatePreferencesRequestVM>

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.