cURL
curl --request POST \ --url 'http://{{base_url}}/api/change-password' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "password": "{{user_password}}", "new_password": "ccddssfs4fefssasf" } '
{ "message": "User changed password successful" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The body is of type object.
object
OK
The response is of type object.