3

Is it possible to create a site collection using the SharePoint Online REST api?

I found some old notes about using admin.asmx in 2007/2010/2013 but I can't find anything related to SharePoint online or if it still exists.

An example URL would be amazing if it's possible.

2
  • I've used the PnP library and Flows with Azure functions, but haven't explored the ReST route yet. I'm assuming it would be a lot easier than those 2 methods. Commented Dec 13, 2018 at 22:26
  • What type of site collection would you like to create ? Do you want to create modern communication and team sites ? Commented Dec 14, 2018 at 12:05

1 Answer 1

1

SharePoint Online Rest API provide endpoint to create a sub site but not site collection, see my reply in the similiar thread:

Create the site collection using ECMAScript, JSOM Or Rest API

And web service http://CentralAdmin/_vti_adm/Admin.asmx is not suitable for SharePoint Online, as there is no CA for SPO, this is for On-Premise Environment.

You could use PnP PowerShell New-PnPSite Command to create a site collection instead:

New-PnPSite

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.