POST api/UpdateEmail

Updates the member email address.

Request Information

URI Parameters

None.

Body Parameters

UpdateEmailRequest
NameDescriptionTypeAdditional information
SessionKey

string

Required

Email

string

Required

SendEmail

If true a confirmation email will be sent to the member

boolean

Request Formats

application/json, text/json

Sample:
{
  "SessionKey": "sample string 1",
  "Email": "sample string 2",
  "SendEmail": true
}

application/xml, text/xml

Sample:
<UpdateEmailRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Account">
  <Email>sample string 2</Email>
  <SendEmail>true</SendEmail>
  <SessionKey>sample string 1</SessionKey>
</UpdateEmailRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UpdateEmailRequest'.

Response Information

Resource Description

UpdateEmailResult object

ApiSuccessOfUpdateEmailResult
NameDescriptionTypeAdditional information
Success

boolean
Data

UpdateEmailResult

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Data": {
    "EmailSent": true
  }
}

application/xml, text/xml

Sample:
<ApiSuccessOfUpdateEmailResultgLC8bFpX xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Api">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Account">
    <d2p1:EmailSent>true</d2p1:EmailSent>
  </Data>
</ApiSuccessOfUpdateEmailResultgLC8bFpX>