
Explanation


Box 1: post
You need to create a group named Project A.
The following example creates an Office 365 group.
POST https://graph.microsoft.com/v1.0/groups
Content-type: application/json
Content-length: 244
{
"description": "Self help community for library",
"displayName": "Library Assist",
"groupTypes": [
"Unified"
],
"mailEnabled": true,
"mailNickname": "library",
"securityEnabled": false
}
Box 2: PATCH
Add a classification of Private to the group.
You can set the classification property in a PATCH request for the group, if do not set it in the initial POST request that creates the group.
Box 3: put
Then convert Project A to a team group.
Syntax: PUT /groups/{id}/team
References: https://docs.microsoft.com/en-us/graph/api/group-post-groups
https://docs.microsoft.com/en-us/graph/api/resources/group
https://docs.microsoft.com/en-us/graph/api/team-put-teams