cURL
curl --request POST \ --url https://api.example.com/auth/change-password \ --header 'Content-Type: application/json' \ --data ' { "currentPassword": "<string>", "newPassword": "<string>" } '
Password changed successfully