update modification API and mail template