update email data api