POST api/Account/ChangePassword

Changes user's password.

Request Information

URI Parameters

None.

Body Parameters

ChangePasswordPost
NameDescriptionTypeAdditional information
OldPassword

Old password to authorize the change.

string

None.

NewPassword

New password satisfying Requestor password policy.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "OldPassword": "OldPassword",
  "NewPassword": "NewSecretPassword"
}

application/xml, text/xml

Sample:
<ChangePasswordPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts">
  <NewPassword>NewSecretPassword</NewPassword>
  <OldPassword>OldPassword</OldPassword>
</ChangePasswordPost>

Response Information

Resource Description

HttpStatusCode 200 OK or 400 BadRequest with Message.

IHttpActionResult

None.