POST api/Account/ChangePasswordGenerateEmailWithEmailKey

Generate email for change password. Administrator role authetication required.

Request Information

URI Parameters

None.

Body Parameters

GeneratePasswordPost
NameDescriptionTypeAdditional information
Email

User's email

string

None.

EmailSubject

Email subject

string

None.

EmailText

Email text

string

None.

Link

If email text has %LINK%. The chars will be replaced on the link

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Email": "john.doe@domain.com",
  "EmailSubject": "New Password",
  "EmailText": "Use the %LINK%",
  "Link": "www.requestor.com"
}

application/xml, text/xml

Sample:
<GeneratePasswordPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts">
  <Email>john.doe@domain.com</Email>
  <EmailSubject>New Password</EmailSubject>
  <EmailText>Use the %LINK%</EmailText>
  <Link>www.requestor.com</Link>
</GeneratePasswordPost>

Response Information

Resource Description

HttpStatusCode 200 OK and BadRequest

IHttpActionResult

None.