Add migrate repo API