Microsoft-graph-docs: Looks like the sample code of create team with application permission is not correct

Created on 20 Oct 2020  Â·  2Comments  Â·  Source: microsoftgraph/microsoft-graph-docs

Looks like the [email protected] doesn't work in beta and V1.0 endpoint, please advice, thank you.
{ "[email protected]":"https://graph.microsoft.com/v1.0/teamsTemplates('standard')", "displayName":"My Sample Team", "description":"My Sample Team’s Description", "[email protected]":[ { "@odata.type":"#microsoft.graph.aadUserConversationMember", "roles":[ "owner" ], "userId":"0040b377-61d8-43db-94f5-81374122dc7e" } ] }


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

documentation

Most helpful comment

@longnlp , I cross verified the create team request it seems document needs to be updated; Here is the correct request body

 {
  "[email protected]": "https://graph.microsoft.com/beta/teamsTemplates('standard')",
  "displayName": "My Test Team",
  "description": "My Test Team for testing purpose",
  "members": [
            {
            "@odata.type": "#microsoft.graph.aadUserConversationMember",
            "roles": ["owner"],
            "userId": "b130c271-d2eb-45f9-83ab-9eb3fe3788bc"
        }
  ]
}

@laujan : could you please help to update the document request with above sample code request?

All 2 comments

Looks like this is the answer, please help fix the sample code in the document. https://stackoverflow.com/questions/64322274/microsoft-graph-create-teams-api-returns-bind-requests-not-supported-for-cont

@longnlp , I cross verified the create team request it seems document needs to be updated; Here is the correct request body

 {
  "[email protected]": "https://graph.microsoft.com/beta/teamsTemplates('standard')",
  "displayName": "My Test Team",
  "description": "My Test Team for testing purpose",
  "members": [
            {
            "@odata.type": "#microsoft.graph.aadUserConversationMember",
            "roles": ["owner"],
            "userId": "b130c271-d2eb-45f9-83ab-9eb3fe3788bc"
        }
  ]
}

@laujan : could you please help to update the document request with above sample code request?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bijithbalan picture bijithbalan  Â·  4Comments

dcnoren picture dcnoren  Â·  4Comments

mlafleur picture mlafleur  Â·  3Comments

andrewfabrizi picture andrewfabrizi  Â·  3Comments

aaronrogers picture aaronrogers  Â·  3Comments