POST api/Password
Change a password
Request Information
URI Parameters
None.
Body Parameters
The data needed to change a password
NewPasswordData| Name | Description | Type | Additional information |
|---|---|---|---|
| OldPassword |
The old password of the donor |
string |
None. |
| NewPassword |
The new password for the donor |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"OldPassword": "sample string 1",
"NewPassword": "sample string 2"
}
application/xml, text/xml
Sample:
<NewPasswordData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Caf.DonorSystem.Mobile.WebApi.Models"> <NewPassword>sample string 2</NewPassword> <OldPassword>sample string 1</OldPassword> </NewPasswordData>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiResult| Name | Description | Type | Additional information |
|---|---|---|---|
| HasErrors |
True if there are any errors present |
boolean |
None. |
| Errors |
The list of errors |
Collection of ApiResultError |
None. |
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.