Is there a way to create a SharePoint Site in SPO using a Graph API?

Mark Kordelski 21 Reputation points Microsoft Employee
2022-07-07T22:07:12.843+00:00

I am looking for a way to create a SharePoint site collection in SPO using Graph API. I see Graph API calls for Get Site and List Sites but is there a way to create a SharePoint site collection?

Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

Accepted answer
  1. Tong Zhang_MSFT 9,251 Reputation points
    2022-07-08T02:24:27.057+00:00

    Hi @Mark Kordelski ,

    According to my research and testing, we cannot create a SharePoint site using Graph API. The SharePoint API in Microsoft Graph supports the following core scenarios:

    1. Access to SharePoint sites, lists, and drives (document libraries)
    2. Read-only support for site resources (no ability to create new sites)
    3. Read-write support for lists, listItems, and driveItems
    4. Address resources by SharePoint ID, URL, or relative path

    You can refer to this MS Graph documentation : Working with SharePoint sites in Microsoft Graph
    218801-image.png

    Additionally, you can create a SharePoint site using REST API : https://learn.microsoft.com/en-us/sharepoint/dev/apis/site-creation-rest#create-a-modern-site

    Similar issue for reference : https://learn.microsoft.com/en-us/answers/questions/72320/create-sharepoint-sitesubsite-using-microsoft-grap.html

    Thanks for your understanding and support.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    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.


    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.