POST api/Values/ChangePassword
Request Information
URI Parameters
None.
Body Parameters
ChangePassword_Property| Name | Description | Type | Additional information |
|---|---|---|---|
| user_id | string |
None. |
|
| old_password | string |
None. |
|
| new_password | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"user_id": "sample string 1",
"old_password": "sample string 2",
"new_password": "sample string 3"
}
application/xml, text/xml
Sample:
<ChangePassword_Property xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLL.PropertyClasses.Master"> <new_password>sample string 3</new_password> <old_password>sample string 2</old_password> <user_id>sample string 1</user_id> </ChangePassword_Property>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ChangePassword_Response| Name | Description | Type | Additional information |
|---|---|---|---|
| success | boolean |
None. |
|
| msg | string |
None. |
|
| data | ChangePassword_Property |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"msg": "sample string 2",
"data": {
"user_id": "sample string 1",
"old_password": "sample string 2",
"new_password": "sample string 3"
}
}
application/xml, text/xml
Sample:
<ChangePassword_Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLL.FunctionClasses.Response">
<data xmlns:d2p1="http://schemas.datacontract.org/2004/07/BLL.PropertyClasses.Master">
<d2p1:new_password>sample string 3</d2p1:new_password>
<d2p1:old_password>sample string 2</d2p1:old_password>
<d2p1:user_id>sample string 1</d2p1:user_id>
</data>
<msg>sample string 2</msg>
<success>true</success>
</ChangePassword_Response>