modify trust api