migrate API according to the changes in datamart