Changed method from post to put in Update task example