POST api/Account/UpdateCampaignAndTemplateDefaultSettings

Request Information

URI Parameters

None.

Body Parameters

UpdateEmailAndTextDefaultSettingsRequestVM
NameDescriptionTypeAdditional information
UserId

string

Required

AccountId

string

Required

EmailSettings

EmailDefaultSettingsVM

Required

TextSettings

TextMesageDefaultSettingsVM

Required

Request Formats

application/json, text/json

Sample:
{
  "UserId": "sample string 1",
  "AccountId": "sample string 2",
  "EmailSettings": {
    "AvailableEmails": [
      {
        "Email": "sample string 1",
        "IsVerified": true
      },
      {
        "Email": "sample string 1",
        "IsVerified": true
      }
    ],
    "DefaultFromName": "sample string 1",
    "DefaultEmail": "sample string 2",
    "DefaultReplyEmailAddress": "sample string 3",
    "EmailLegalDisclaimer": "sample string 4",
    "EmailLegalDisclaimerRawContent": "sample string 5",
    "EmailFooterSettings": {
      "Name": "sample string 1",
      "CountryId": "sample string 2",
      "Address1": "sample string 3",
      "Address2": "sample string 4",
      "City": "sample string 5",
      "StateId": "sample string 6",
      "ZipCode": "sample string 7",
      "PhoneNumber": "sample string 8",
      "PhoneCountryCode": "sample string 9",
      "Website": "sample string 10"
    },
    "EmailSendVia": "Default",
    "IntegrationId": "sample string 6",
    "EmailDomainId": "sample string 7"
  },
  "TextSettings": {
    "FromName": "sample string 1"
  }
}

application/xml, text/xml

Sample:
<UpdateEmailAndTextDefaultSettingsRequestVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Business.Service.Services.RequestViewModels.AccountsAndUsers.SubAccount">
  <AccountId>sample string 2</AccountId>
  <EmailSettings xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ResponseModel.Campaign">
    <d2p1:AvailableEmails>
      <d2p1:EmailDetailVM>
        <d2p1:Email>sample string 1</d2p1:Email>
        <d2p1:IsVerified>true</d2p1:IsVerified>
      </d2p1:EmailDetailVM>
      <d2p1:EmailDetailVM>
        <d2p1:Email>sample string 1</d2p1:Email>
        <d2p1:IsVerified>true</d2p1:IsVerified>
      </d2p1:EmailDetailVM>
    </d2p1:AvailableEmails>
    <d2p1:DefaultEmail>sample string 2</d2p1:DefaultEmail>
    <d2p1:DefaultFromName>sample string 1</d2p1:DefaultFromName>
    <d2p1:DefaultReplyEmailAddress>sample string 3</d2p1:DefaultReplyEmailAddress>
    <d2p1:EmailDomainId>sample string 7</d2p1:EmailDomainId>
    <d2p1:EmailFooterSettings>
      <d2p1:Address1>sample string 3</d2p1:Address1>
      <d2p1:Address2>sample string 4</d2p1:Address2>
      <d2p1:City>sample string 5</d2p1:City>
      <d2p1:CountryId>sample string 2</d2p1:CountryId>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:PhoneCountryCode>sample string 9</d2p1:PhoneCountryCode>
      <d2p1:PhoneNumber>sample string 8</d2p1:PhoneNumber>
      <d2p1:StateId>sample string 6</d2p1:StateId>
      <d2p1:Website>sample string 10</d2p1:Website>
      <d2p1:ZipCode>sample string 7</d2p1:ZipCode>
    </d2p1:EmailFooterSettings>
    <d2p1:EmailLegalDisclaimer>sample string 4</d2p1:EmailLegalDisclaimer>
    <d2p1:EmailLegalDisclaimerRawContent>sample string 5</d2p1:EmailLegalDisclaimerRawContent>
    <d2p1:EmailSendVia>Default</d2p1:EmailSendVia>
    <d2p1:IntegrationId>sample string 6</d2p1:IntegrationId>
  </EmailSettings>
  <TextSettings xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ResponseModel.Campaign">
    <d2p1:FromName>sample string 1</d2p1:FromName>
  </TextSettings>
  <UserId>sample string 1</UserId>
</UpdateEmailAndTextDefaultSettingsRequestVM>

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.