POST api/Contact/UpdateContactEmails

Request Information

URI Parameters

None.

Body Parameters

ContactEmailsRequestVM
NameDescriptionTypeAdditional information
ContactId

string

Required

AccountId

string

Required

Emails

Collection of EmailAddressViewModel

None.

UserId

string

Required

LoggedInSubAccountId

string

Required

Request Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<ContactEmailsRequestVM 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>
  <Emails xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel">
    <d2p1:EmailAddressViewModel>
      <d2p1:AgeConfirmationFailedOn>7</d2p1:AgeConfirmationFailedOn>
      <d2p1:Email>sample string 2</d2p1:Email>
      <d2p1:EmailLabelId>sample string 4</d2p1:EmailLabelId>
      <d2p1:Id>sample string 1</d2p1:Id>
      <d2p1:IsOptOut>true</d2p1:IsOptOut>
      <d2p1:IsPrimary>true</d2p1:IsPrimary>
      <d2p1:Label>sample string 5</d2p1:Label>
      <d2p1:Status>None</d2p1:Status>
    </d2p1:EmailAddressViewModel>
    <d2p1:EmailAddressViewModel>
      <d2p1:AgeConfirmationFailedOn>7</d2p1:AgeConfirmationFailedOn>
      <d2p1:Email>sample string 2</d2p1:Email>
      <d2p1:EmailLabelId>sample string 4</d2p1:EmailLabelId>
      <d2p1:Id>sample string 1</d2p1:Id>
      <d2p1:IsOptOut>true</d2p1:IsOptOut>
      <d2p1:IsPrimary>true</d2p1:IsPrimary>
      <d2p1:Label>sample string 5</d2p1:Label>
      <d2p1:Status>None</d2p1:Status>
    </d2p1:EmailAddressViewModel>
  </Emails>
  <LoggedInSubAccountId>sample string 4</LoggedInSubAccountId>
  <UserId>sample string 3</UserId>
</ContactEmailsRequestVM>

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.