I'm currently working on an application in which we could create teams from customize template and delete them simply. I picked Azure function to create my teams as it is more flexible. So I do a POST with Graph SDK of C# for creating my new team by cloning the templates in our database. But, if we want to delete a team, we need to have the id of the team. So I want to get the response of the response of the my POST which let me create my new team.
So how can I get it? Here you are my POST for cloning my new team.
await graphClient.Teams[teamIDToCopy]
.Clone(visibility,partsToClone,displayName,description,mailNickname,null)
.Request()
.PostAsync();
Any help appreciated, thanks in advance.