Change Authenication Email

How do I change authenication email for firebase using rest api. I’ve tried it but I keep getting invalid idToken error.

I try the idToken by copy and paste it after I login.