POST api/user/change-password
Changes the current authenticated user's password.
Request Information
URI Parameters
None.
Body Parameters
Password change request containing current password and new password.
ChangePasswordRequestDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| CurrentPassword | string |
Required |
|
| NewPassword | string |
Required Min length: 8 |
Request Formats
application/json, text/json
Sample:
{
"currentPassword": "sample string 1",
"newPassword": "sample string 2"
}
application/xml, text/xml
Sample:
<ChangePasswordRequestDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CruiseParking.Website.API.Models"> <CurrentPassword>sample string 1</CurrentPassword> <NewPassword>sample string 2</NewPassword> </ChangePasswordRequestDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Success status indicating whether the password was changed successfully.
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.