POST api/Contact/ChangePassword
Request Information
URI Parameters
None.
Body Parameters
ChangePasswordModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ContactID | integer |
None. |
|
| OldPassword | string |
None. |
|
| NewPassword | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ContactID": 1,
"OldPassword": "sample string 1",
"NewPassword": "sample string 2"
}
application/xml, text/xml
Sample:
<ChangePasswordModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Android_API.Models"> <ContactID>1</ContactID> <NewPassword>sample string 2</NewPassword> <OldPassword>sample string 1</OldPassword> </ChangePasswordModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultWithModel| Name | Description | Type | Additional information |
|---|---|---|---|
| success | boolean |
None. |
|
| message | string |
None. |
|
| refcode | string |
None. |
|
| total | integer |
None. |
|
| datas | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"message": "sample string 2",
"refcode": "sample string 3",
"total": 4,
"datas": {}
}
application/xml, text/xml
Sample:
<ResultWithModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Android_API.Models"> <datas /> <message>sample string 2</message> <refcode>sample string 3</refcode> <success>true</success> <total>4</total> </ResultWithModel>