PUT api/Account/Password
Change (or set, if no password is set) the logged-in user's password
Request Information
URI Parameters
None.
Body Parameters
ChangePasswordModelName | Description | Type | Additional information |
---|---|---|---|
OldPassword |
User's old (current) password |
string |
Required Data type: Password |
Password |
User's desired new password |
string |
Required Data type: Password String length: inclusive between 8 and 100 |
ConfirmPassword |
Confirmation of the user's new password |
string |
Required Data type: Password |
Request Formats
application/json, text/json
Sample:
{ "OldPassword": "sample string 1", "Password": "sample string 2", "ConfirmPassword": "sample string 3" }
application/xml, text/xml
Sample:
<ChangePasswordModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.Shared.Implementation.Models"> <ConfirmPassword>sample string 3</ConfirmPassword> <OldPassword>sample string 1</OldPassword> <Password>sample string 2</Password> </ChangePasswordModel>
multipart/form-data
Sample:
Response Information
Resource Description
PrimitiveOfBooleanName | Description | Type | Additional information |
---|---|---|---|
value | boolean |
Required |
Response Formats
application/json, text/json
Sample:
{ "value": true }
application/xml, text/xml
Sample:
<PrimitiveOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.API.Models"> <value>true</value> </PrimitiveOfboolean>