updated api structure to have unique path ids