/users/{user_id}/email_addressReplace a user's email address
Replaces all of the user's email addresses with a single primary email address.
By default the new email address is created verified, with the admin verification strategy.
When identification_status is reserved it is created reserved instead: unverified but usable
for sign-in and locked so no other user can claim it. When it is unverified the address is
neither usable for sign-in nor locked. Any existing email addresses are deleted.
If an existing email address is linked to a connected account, the request is rejected; remove
the connected account first.
Warning: identification_status: unverified can lock the user out of their account. An
unverified email address cannot be used to sign in, so if the user has no other verified or
reserved identifier, deleting their existing email addresses leaves them unable to
authenticate — and unable to verify the new address, since that requires signing in. Recovery
then requires another admin API call.
A 400 is returned: Request was not successful. A 401 is returned: Authentication invalid. A 403 is returned: Authorization invalid. A 404 is returned: Resource not found. A 422 is returned: Invalid request parameters.