PUT api/token/{username}
Reset password for an account.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
username |
Username to reset the password for. |
string |
Required |
Body Parameters
Input dto.
ResetPasswordDTOName | Description | Type | Additional 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:
Response Information
Resource Description
ObjectNone.
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/" />