POST api/Account/ResetPassword

Reset user's password.

Request Information

URI Parameters

None.

Body Parameters

ResetPasswordPost
NameDescriptionTypeAdditional information
UserName

username

string

None.

NewPassword

New password satisfying Requestor password policy.

string

None.

SendEmail

Send an email to the user with a new password.

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "UserName": "user1",
  "NewPassword": "NewSecretPassword",
  "SendEmail": true
}

application/xml, text/xml

Sample:
<ResetPasswordPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts">
  <NewPassword>NewSecretPassword</NewPassword>
  <SendEmail>true</SendEmail>
  <UserName>user1</UserName>
</ResetPasswordPost>

Response Information

Resource Description

HttpStatusCode 200 OK or 400 BadRequest with Message.

IHttpActionResult

None.