add doEdit function for api client