Complete the task edit implementation in the api. #513