Forum Discussion
Stefaan De Vreese
Oct 11, 2018Brass Contributor
How to create Team Site with REST API
Hi Guys,
I have been searching all over the place to find information about a "simple" task I want to do with REST API. I want to create a new Team Site...
I have found this endpoint which lets me create a communication site, but why is there no such thing for Team Sites?
"/_api/sitepages/communicationsite/create"
Hi Stefan, I spent ages digging around this as definitely isn't as simple as you'd think. Ultimately you need to use _api/GroupSiteManager/CreateGroupEx but I covered some of the details in my post at:
3 Replies
Sort By
- Eric SkaggsCopper ContributorYou can create a modern team site that's not connected to a group as well as a modern communication site via the REST APIs. Here's an example. The key on the left below is to set the web template to STS#3 instead of the classic STS#0.
Hi Stefan, I spent ages digging around this as definitely isn't as simple as you'd think. Ultimately you need to use _api/GroupSiteManager/CreateGroupEx but I covered some of the details in my post at:
- Stefaan De VreeseBrass ContributorThanks for the quick response Kevin, it works like a charm!
I also wonder why this is so badly documented, since it's a basic operation, right?