PUT api/UpdateProfile/OptOutContactAndUpdateProfile
Request Information
URI Parameters
None.
Body Parameters
OptOutDetailViewModelName | Description | Type | Additional information |
---|---|---|---|
AccountId | string |
None. |
|
ContactId | string |
None. |
|
SubscribedEmails | Collection of string |
None. |
|
SubscribedPhones | Collection of string |
None. |
|
OptOutContactDetails | Collection of OptOutContactViewModel |
None. |
|
MessageSetting | ContactMessageSetting |
None. |
Request Formats
application/json, text/json
Sample:
{ "AccountId": "sample string 1", "ContactId": "sample string 2", "SubscribedEmails": [ "sample string 1", "sample string 2" ], "SubscribedPhones": [ "sample string 1", "sample string 2" ], "OptOutContactDetails": [ { "MobileNumber": "sample string 1", "MobileCountryCode": "sample string 2", "Email": "sample string 3", "OptOutStartDate": "2024-11-21T08:36:58.080692+00:00", "EndDate": "2024-11-21T08:36:58.080692+00:00", "AccountId": "sample string 4", "ParentAccountId": "sample string 5", "UnsubscribeInitiatedModuleId": "sample string 6", "UnSubscribeForSendSummaryId": "sample string 7", "IsEmailRoute": true, "IsTextRoute": true, "IsVoiceRoute": true, "ContactId": "sample string 11", "InboundMessageId": "sample string 12", "InitiatedFromModule": "None", "OptOutTrackingId": "sample string 13", "UnsubscribedBy": "Contact", "UnsubscribeReason": "None", "Id": "sample string 14", "CreatedDate": "2024-11-21T08:36:58.080692+00:00", "UpdatedDate": "2024-11-21T08:36:58.080692+00:00", "CreatedBy": "sample string 17", "UpdatedBy": "sample string 18", "CreatedByUserId": "sample string 19", "UpdatedByUserId": "sample string 20", "IsDeleted": true }, { "MobileNumber": "sample string 1", "MobileCountryCode": "sample string 2", "Email": "sample string 3", "OptOutStartDate": "2024-11-21T08:36:58.080692+00:00", "EndDate": "2024-11-21T08:36:58.080692+00:00", "AccountId": "sample string 4", "ParentAccountId": "sample string 5", "UnsubscribeInitiatedModuleId": "sample string 6", "UnSubscribeForSendSummaryId": "sample string 7", "IsEmailRoute": true, "IsTextRoute": true, "IsVoiceRoute": true, "ContactId": "sample string 11", "InboundMessageId": "sample string 12", "InitiatedFromModule": "None", "OptOutTrackingId": "sample string 13", "UnsubscribedBy": "Contact", "UnsubscribeReason": "None", "Id": "sample string 14", "CreatedDate": "2024-11-21T08:36:58.080692+00:00", "UpdatedDate": "2024-11-21T08:36:58.080692+00:00", "CreatedBy": "sample string 17", "UpdatedBy": "sample string 18", "CreatedByUserId": "sample string 19", "UpdatedByUserId": "sample string 20", "IsDeleted": true } ], "MessageSetting": "LoveHearingFromYouMessageAnytime" }
application/xml, text/xml
Sample:
<OptOutDetailViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel"> <AccountId>sample string 1</AccountId> <ContactId>sample string 2</ContactId> <MessageSetting>LoveHearingFromYouMessageAnytime</MessageSetting> <OptOutContactDetails> <OptOutContactViewModel> <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 17</CreatedBy> <CreatedByUserId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 19</CreatedByUserId> <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">2024-11-21T08:36:58.080692+00:00</CreatedDate> <Id xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 14</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 18</UpdatedBy> <UpdatedByUserId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 20</UpdatedByUserId> <UpdatedDate xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">2024-11-21T08:36:58.080692+00:00</UpdatedDate> <AccountId>sample string 4</AccountId> <ContactId>sample string 11</ContactId> <Email>sample string 3</Email> <EndDate>2024-11-21T08:36:58.080692+00:00</EndDate> <InboundMessageId>sample string 12</InboundMessageId> <InitiatedFromModule>None</InitiatedFromModule> <IsEmailRoute>true</IsEmailRoute> <IsTextRoute>true</IsTextRoute> <IsVoiceRoute>true</IsVoiceRoute> <MobileCountryCode>sample string 2</MobileCountryCode> <MobileNumber>sample string 1</MobileNumber> <OptOutStartDate>2024-11-21T08:36:58.080692+00:00</OptOutStartDate> <OptOutTrackingId>sample string 13</OptOutTrackingId> <ParentAccountId>sample string 5</ParentAccountId> <UnSubscribeForSendSummaryId>sample string 7</UnSubscribeForSendSummaryId> <UnsubscribeInitiatedModuleId>sample string 6</UnsubscribeInitiatedModuleId> <UnsubscribeReason>None</UnsubscribeReason> <UnsubscribedBy>Contact</UnsubscribedBy> </OptOutContactViewModel> <OptOutContactViewModel> <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 17</CreatedBy> <CreatedByUserId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 19</CreatedByUserId> <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">2024-11-21T08:36:58.080692+00:00</CreatedDate> <Id xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 14</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 18</UpdatedBy> <UpdatedByUserId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 20</UpdatedByUserId> <UpdatedDate xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">2024-11-21T08:36:58.080692+00:00</UpdatedDate> <AccountId>sample string 4</AccountId> <ContactId>sample string 11</ContactId> <Email>sample string 3</Email> <EndDate>2024-11-21T08:36:58.080692+00:00</EndDate> <InboundMessageId>sample string 12</InboundMessageId> <InitiatedFromModule>None</InitiatedFromModule> <IsEmailRoute>true</IsEmailRoute> <IsTextRoute>true</IsTextRoute> <IsVoiceRoute>true</IsVoiceRoute> <MobileCountryCode>sample string 2</MobileCountryCode> <MobileNumber>sample string 1</MobileNumber> <OptOutStartDate>2024-11-21T08:36:58.080692+00:00</OptOutStartDate> <OptOutTrackingId>sample string 13</OptOutTrackingId> <ParentAccountId>sample string 5</ParentAccountId> <UnSubscribeForSendSummaryId>sample string 7</UnSubscribeForSendSummaryId> <UnsubscribeInitiatedModuleId>sample string 6</UnsubscribeInitiatedModuleId> <UnsubscribeReason>None</UnsubscribeReason> <UnsubscribedBy>Contact</UnsubscribedBy> </OptOutContactViewModel> </OptOutContactDetails> <SubscribedEmails xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </SubscribedEmails> <SubscribedPhones xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </SubscribedPhones> </OptOutDetailViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.