PUT api/token/{username}

Reset password for an account.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
username

Username to reset the password for.

string

Required

Body Parameters

Input dto.

ResetPasswordDTO
NameDescriptionTypeAdditional information
OldPassword

Temporary password for the username.

string

None.

NewPassword

New password for the username.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "OldPassword": "sample string 1",
  "NewPassword": "sample string 2"
}

text/html

Sample:
{"OldPassword":"sample string 1","NewPassword":"sample string 2"}

application/xml, text/xml

Sample:
<ResetPasswordDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.WebAPI.DTOs">
  <NewPassword>sample string 2</NewPassword>
  <OldPassword>sample string 1</OldPassword>
</ResetPasswordDTO>

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

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json, text/html

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />