POST api/user/ChangeUserOldPassword
EditUserPassword
Request Information
URI Parameters
None.
Body Parameters
user ID and password and old password
ChangeOldPasswordBinderName | Description | Type | Additional information |
---|---|---|---|
userId | integer |
None. |
|
password | string |
None. |
|
oldPassword | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "userId": 1, "password": "sample string 2", "oldPassword": "sample string 3" }
application/xml, text/xml
Sample:
<ChangeOldPasswordBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DevTrackApi.Controllers"> <oldPassword>sample string 3</oldPassword> <password>sample string 2</password> <userId>1</userId> </ChangeOldPasswordBinder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
EditUserPassword
ApiReturnName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
Error | ErrorInfo |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "Error": { "ErrorCode": 1, "ErrorMessage": "sample string 1" } }
application/xml, text/xml
Sample:
<ApiReturn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common"> <Error> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 1</ErrorMessage> </Error> <Success>true</Success> </ApiReturn>