POST {authenticationKey}/{version}/Accounts/ForgotPassword?userNameOrEmail={userNameOrEmail}&tokenDurationHours={tokenDurationHours}

Returns a token that can be used to reset a users password.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userNameOrEmail

string

Required

tokenDurationHours

Default = 900

byte

Default value is 255

authenticationKey

string

None.

version

string

None.

Body Parameters

None.

Response Information

Resource Description

ForgotPasswordTokenModel
NameDescriptionTypeAdditional information
UserName

string

None.

UserPublicKey

globally unique identifier

None.

PasswordResetToken

globally unique identifier

None.

TokenExpirationDate

date

None.

Response Formats

application/json, text/json

Sample:
{
  "UserName": "sample string 1",
  "UserPublicKey": "e8d74406-2724-4071-86a4-a5f2d3dede31",
  "PasswordResetToken": "9d6a98d9-09b2-47e4-b8a5-0cd0a24833c6",
  "TokenExpirationDate": "2019-08-18T21:52:24.188277-04:00"
}

text/html

Sample:
{"UserName":"sample string 1","UserPublicKey":"e8d74406-2724-4071-86a4-a5f2d3dede31","PasswordResetToken":"9d6a98d9-09b2-47e4-b8a5-0cd0a24833c6","TokenExpirationDate":"2019-08-18T21:52:24.188277-04:00"}

application/xml, text/xml

Sample:
<ForgotPasswordTokenModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.AccountMangement">
  <PasswordResetToken>9d6a98d9-09b2-47e4-b8a5-0cd0a24833c6</PasswordResetToken>
  <TokenExpirationDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2019-08-19T01:52:24.188277Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>-240</d2p1:OffsetMinutes>
  </TokenExpirationDate>
  <UserName>sample string 1</UserName>
  <UserPublicKey>e8d74406-2724-4071-86a4-a5f2d3dede31</UserPublicKey>
</ForgotPasswordTokenModel>

application/bson

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