Updates the user's email address. The user will receive an email with a one-time password (OTP) to verify the new email address. In order to finish the process, the user must provide the OTP to the /zephr/users/update-email/{otp} endpoint. The difference between this endpoint and the /blaize/users/update-email endpoint is that this endpoint requires the extra layer of authentication through the required validator.
required | object (identifiers) |
required | object (identifiers) |
required | object (validators) |
OK. The confirmation email was sent successfully.
Bad Request. Returned if the provided email is invalid.
Unauthorized. Returned if the provided validator is invalid.
Not Found. Returned if the user is not found.
{- "current_identifiers": {
- "email_address": "john.doe@company.com"
}, - "new_identifiers": {
- "email_address": "doe.john@company.com"
}, - "validators": {
- "password": "mysecurepassword123"
}
}
{- "message": "Email with OTP sent to verify new email address"
}