POST api/Account/{token}/resetpw

Reset the Password for an existing User Account. User account will be identified by the PasswordResetToken and verified by the Username. If account identification or verification is unsuccessful for any reason, the user account password will not be changed. PasswordResetToken values have an expiration date associated with them, and must not be expired in order to be considered valid.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
token

The PasswordReset Token issued for the account to be updated.

string

Required

Body Parameters

Object containing Username, PasswordResetToken, NewPassword and ConfirmPassword

UserPasswordReset
NameDescriptionTypeAdditional information
PasswordResetToken

string

None.

Username

string

None.

NewPassword

string

None.

ConfirmPassword

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PasswordResetToken": "120230d6-8076-4f9d-a74e-f6ec5d3b2edc",
  "Username": "john.doe@email.com",
  "NewPassword": "NewPassword",
  "ConfirmPassword": "NewPassword"
}

application/xml, text/xml

Sample:
<UserPasswordReset xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PBR.FanClub.WebAPI.Models">
  <ConfirmPassword>NewPassword</ConfirmPassword>
  <NewPassword>NewPassword</NewPassword>
  <PasswordResetToken>120230d6-8076-4f9d-a74e-f6ec5d3b2edc</PasswordResetToken>
  <Username>john.doe@email.com</Username>
</UserPasswordReset>

Response Information

Resource Description

PasswordResetPostResponse
NameDescriptionTypeAdditional information
EmailAddress

string

None.

Success

Boolean value indicating if request was fulfilled

boolean

None.

ErrorMessage

List of any errors or problems that prevented request from being fulfilled.

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "EmailAddress": "john.doe@email.com",
  "Success": true,
  "ErrorMessage": []
}

application/xml, text/xml

Sample:
<PasswordResetPostResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PBR.FanClub.WebAPI.Models">
  <ErrorMessage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
  <Success>true</Success>
  <EmailAddress>john.doe@email.com</EmailAddress>
</PasswordResetPostResponse>