cURL
curl --request POST \ --url https://api.replyke.com/api/v6/:projectId/auth/change-password \ --header 'Content-Type: application/json' \ --data ' { "password": "<string>", "newPassword": "<string>" } '
{ "success": true, "message": "<string>" }
Change the password for an authenticated user
Missing Fields - 400 Bad Request
{ "error": "Email, password, and a new password are all required.", "code": "auth/missing-fields" }
User Not Found - 403 Forbidden
{ "error": "User not found.", "code": "auth/no-user-found" }
User Not Password Authenticated - 400 Bad Request
{ "error": "User is not authenticated with email and password.", "code": "auth/not-password-authenticated" }
Incorrect Password - 401 Unauthorized
{ "error": "Incorrect password.", "code": "auth/wrong-password" }
Server Error - 500 Internal Server Error
{ "error": "Internal server error.", "code": "auth/server-error", "details": "<Error message>" }