Changed apiReplace to apiEdit