Skip to content

Complete updating the current email address

Request

Completes updating the user's email address. The user must provide the OTP received in the email to verify the new email address. 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.

Security
CookieBlaizeSession or JwtQuery or JwtHeaderXBlaizeJwt or JwtHeaderXZephrJwt or JwtBearer or JwtCookie
Path
otpstringrequired

The one-time password (OTP) received in the email.

Bodyapplication/json
current_identifiersobject(identifiers)required
Example:
{ "email_address": "john.doe@company.com" }
validatorsobject(validators)required
Example:
{ "password": "mysecurepassword123" }
{ "current_identifiers": { "email_address": "john.doe@company.com" }, "validators": { "password": "mysecurepassword123" } }

Responses

OK. The email address was updated successfully.

Headers
any
Bodyapplication/json
messagestring
Example:"User Email updated"
Response
{ "message": "User Email updated" }