PUT api/login/{userName}/password

Update given user's password.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userName

User's name, whose password need to be changed.

string

Required

Body Parameters

Data to change the password.

ChangePasswordDto
NameDescriptionTypeAdditional information
CurrentPassword

Current user password.

string Required.
NewPassword

Current user new password.

string Required.
ConfirmNewPassword

Current user new password confirmation.

string Required.

Request Formats

application/json, text/json

Sample:
{
  "currentPassword": "sample string 1",
  "newPassword": "sample string 2",
  "confirmNewPassword": "sample string 3"
}

application/xml, text/xml

Sample:
<ChangePasswordDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fern.Abacus.ObjectModel.Dto">
  <ConfirmNewPassword>sample string 3</ConfirmNewPassword>
  <CurrentPassword>sample string 1</CurrentPassword>
  <NewPassword>sample string 2</NewPassword>
</ChangePasswordDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response Codes

Success Status:

  • NoContent (204), the response does not have any content.

Failed Status(es):

Resource Description

None.