Changing a user's email address via api

If you look at the routes.rb file you will see this line

put "users/:username/preferences/email" => "users_email#update", constraints: {username: USERNAME_ROUTE_FORMAT}

which means you need to PUT https://your.discourse.org/users/<username>/preferences/email

Got ninja-ed by @Falco :wink: