Change password
The endpoint is designed for changing the password of a user on a mobile device. When a client sends a request to change the password using this method, they should provide the current password and the new password.
After confirming the phone number or after user authorization, you will receive an access_token. You need to enter this access_token in the
Token
field.
Body Parameters:
Request Sample: cURL
At the time of sending the request, the curl command should be as follows:
curl --request PUT \
--url https://api.vault.sandbox.testessential.net/v2/mobile/password/change \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"newPassword": "1234Qwerty1234",
"currentPassword": "1234Qwert"
}
'
After entering the phone number and password into the respective fields, you need to click the Try It!
button.
This action initiates the process of sending data to the server and receiving a response from the API using the provided credentials.
Response Example
The response status code indicates that the request was successfully processed.
{
"result": "ok"
}
Updated 7 months ago