POST Accounts/ResetPassword

reset the password of the member using email

Request Information

URI Parameters

None.

Body Parameters

ForgotPasswordModel
NameDescriptionTypeAdditional information
PasswordResetToken

globally unique identifier

Required

UserName

string

Required

String length: inclusive between 4 and 128

Password

string

Required

Data type: Password

String length: inclusive between 6 and 100

CustomerID

integer

None.

TokenDurationHours

byte

Range: inclusive between 0 and 255

Request Formats

application/json, text/json

Sample:
{
  "PasswordResetToken": "ba55eea0-31db-4127-8a5a-6740090f5607",
  "UserName": "sample string 2",
  "Password": "sample string 3",
  "CustomerID": 1,
  "TokenDurationHours": 64
}

text/html

Sample:
{"PasswordResetToken":"ba55eea0-31db-4127-8a5a-6740090f5607","UserName":"sample string 2","Password":"sample string 3","CustomerID":1,"TokenDurationHours":64}

application/xml, text/xml

Sample:
<ForgotPasswordModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.AccountMangement">
  <CustomerID xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.Membership">1</CustomerID>
  <Password xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.Membership">sample string 3</Password>
  <TokenDurationHours xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.Membership">64</TokenDurationHours>
  <UserName xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.Membership">sample string 2</UserName>
  <PasswordResetToken>ba55eea0-31db-4127-8a5a-6740090f5607</PasswordResetToken>
</ForgotPasswordModel>

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 'ForgotPasswordModel'.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

AuthenticationResult
NameDescriptionTypeAdditional information
Succeeded

boolean

None.

Errors

Collection of string

None.

ErrorCode

APIErrorCodes

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorCode": 0,
  "Succeeded": true,
  "Errors": [
    "sample string 1",
    "sample string 2"
  ]
}

text/html

Sample:
{"ErrorCode":0,"Succeeded":true,"Errors":["sample string 1","sample string 2"]}

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.