I have Just tested creating teams using Microsoft Graph Explorer (Beta). And found it very useful. Below tests can be useful for your scenario. The use of templates is very much useful.
Kindly follow the steps.
Go to Graph Explorer
Sign in with your Office 365 account where you have permissions to Graph API and can create teams
Try to run below query in Graph Explorer
Post: https://graph.microsoft.com/beta/teams
request Body:
{
"[email protected]": "https://graph.microsoft.com/beta/teamsTemplates('educationClass')",
"displayName": "MySampleTeam",
"description": "My Sample Team’s Description ",
"channels": [
{
"displayName": "Announcements 📢",
"isFavoriteByDefault": true,
"description": "This is a sample announcements channel that is favorited by default. Use this channel to make an important team, product, and service announcements."
},
{
"displayName": "Planning 📅 ",
"description": "This is a sample of a channel that is not favorited by default, these channels will appear in the more channels overflow menu.",
"isFavoriteByDefault": false
}
]
}
Above query creats the team using education template, with OneNote Tab.
Please note, in above requestBody "[email protected]": "https://graph.microsoft.com/beta/teamsTemplates('educationClass')": educationClass is a template.
Read more about Teams Templates here.
Good luck. Happy teams :)