Using Migration API with OneDrive sites

Vish Pothaganti 66 Reputation points

I'm using the Migration API to get bulk of files from SharePoint sites and also to upload bulk files to SharePoint (

Can we use the same API to Import/Export files from OneDrive sites? Is there any special URL structure to build for OneDrive sites?

A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,071 questions
OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,173 questions
0 comments No comments
{count} votes

Accepted answer
  1. MichaelHan-MSFT 18,021 Reputation points

    Hi @Vish Pothaganti ,

    One Drive sites are also SharePoint sites. So yes, we could use the same API to Import/Export files from OneDrive sites.

    The URL of One Drive sites in SharePoint Online should be like this:

    For example: the url of Documents library in my onedrive is:

    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 additional answers

Sort by: Most helpful