Authentication

Start updating the current email address

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.

post/zephr/users/update-email

Request

  • Base URL: https://demo-site
  • URL: https://demo-site/zephr/users/update-email
  • Auth: one of:
    • API key in cookie blaize_session
    • API key in query parameter jwt
    • API key in header x-blaize-jwt
    • API key in header x-zephr-jwt
    • HTTP bearer
    • API key in cookie blaize_jwt

Request body

Example request

{
  "current_identifiers": {
    "email_address": "john.doe@company.com"
  },
  "new_identifiers": {
    "email_address": "doe.john@company.com"
  },
  "validators": {
    "password": "mysecurepassword123"
  }
}

Response

OK. The confirmation email was sent successfully.

messagestring

Example response

{
  "message": "Email with OTP sent to verify new email address"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.