Updated api with new dto types