Endpoint for updating emails