POST api/account/changepassword

V2 - This method allows the currently logged in user to change his or her password

Request Information

URI Parameters

None.

Body Parameters

ChangePassword
NameDescriptionTypeAdditional information
OldPassword

The users existing password.

string

Required

Data type: Password

String length: inclusive between 6 and 100

NewPassword

The users new password. This needs to meet complexity criteria.

  • At least one lowercase letter
  • At least one uppercase letter
  • At least one digit
  • At least one non-alphanumeric character
  • A minimum of six characters

string

Required

Data type: Password

String length: inclusive between 6 and 100

Request Formats

application/json, text/json

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

text/javascript

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

application/xml, text/xml

Sample:
<ChangePassword xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Yindo.DAL.Types">
  <NewPassword>sample string 2</NewPassword>
  <OldPassword>sample string 1</OldPassword>
</ChangePassword>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/javascript, application/xml, text/xml

Sample:

Sample not available.