updated finished task endpoint