user
Change user email
Changed onRequest to change the authenticated user's email address. A verification email will be sent to the new address to confirm the change. Requires elevated permissions.
post/user/email/change
Request
- Base URLhttps://{subdomain}.auth.{region}.nhost.run/v1
- URLhttps://{subdomain}.auth.{region}.nhost.run/v1/user/email/change
- AuthHTTP bearer
Request body
Example request
{
"newEmail": "john.smith@nhost.io",
"options": {
"redirectTo": "https://my-app.com/catch-redirection"
}
}Response
Email change requested. An email with a verification link has been sent to the new address
'OK' required
Changes
- warning
added the new
otp-too-many-attemptsenum value to theresponse property for the response status
- warning
- warning
added the new
user-already-existsenum value to theresponse property for the response status - info
removed the
email-already-in-useenum value from theresponse property for the response status
- warning