Change Password
Overview
Description: This endpoint allows a user to update their current password
Endpoint: {base_url}/etranzact/utils/change/password
REQUEST PARAMETER
- Request Parameters
- Response Parameters
Request Parameters
# | Parameter | Type | Description | Required? |
---|---|---|---|---|
1 | newpassword | String | The new password to be set for the user. | Yes |
2 | oldpassword | String | The current password of the user. | Yes |
Response Parameters
# | Parameter | Type | Description | Required? |
---|---|---|---|---|
1 | data | object | Contains the main response data.. | Yes |
2 | error | String | Describes the error, if any occurred. | Yes |
3 | execTime | String | Execution time of the operation. | Yes |
4 | message | String | Additional information or message about the response. | Yes |
5 | status | Integer | The status code indicating success . | Yes |
- Sample Request
- Sample Response
Request Parameters
PUT {base_url}/etranzact/utils/change/password
curl `${base_url}/etranzact/utils/change/password`
-H "Content-type: application/json"
-X PUT
-d '{
"newpassword": "string",
"oldpassword": "string"
}
'
Response Parameters
PUT {base_url}/etranzact/utils/change/password
{
"data": {},
"error": "string",
"execTime": "string",
"message": "string",
"status": 0
}