POST api/Account/ForgotPassword

Method that sends email to user's email address with generated code to reset his/her password

Request Information

URI Parameters

None.

Body Parameters

ForgotPasswordBinidngModel

ForgotPasswordBinidngModel
NameDescriptionTypeAdditional information
Email

string

Required

Request Formats

application/json, text/json

Sample:
{
  "Email": "sample string 1"
}

application/xml, text/xml

Sample:
<ForgotPasswordBinidngModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CSAeReader.API.eReaderAPI.Models">
  <Email>sample string 1</Email>
</ForgotPasswordBinidngModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiResult[string] with the result of the request. If it is successful, the result.Result will contain success message; otherwise it will contain error messages in result.ErrorMessagesString

ApiResultOfString
NameDescriptionTypeAdditional information
Errors

ErrorModel

None.

Result

string

None.

IsSuccess

boolean

None.

StatusCode

HttpStatusCode

None.

Response Formats

application/json, text/json

Sample:
{
  "Errors": {
    "ErrorsNumber": 1,
    "Messages": [
      "sample string 1",
      "sample string 2"
    ],
    "MessagesString": "sample string 2"
  },
  "Result": "sample string 1",
  "IsSuccess": false,
  "StatusCode": 100
}

application/xml, text/xml

Sample:
<ApiResultOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CSAeReader.Common.API">
  <Errors>
    <ErrorsNumber>1</ErrorsNumber>
    <Messages xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Messages>
    <MessagesString>sample string 2</MessagesString>
  </Errors>
  <Result>sample string 1</Result>
  <StatusCode>Continue</StatusCode>
</ApiResultOfstring>