Example 3 on documentation page

Ivor Denham-Dyson 21 Reputation points
2021-02-22T12:00:33.6+00:00

Example 3 is not working on your documentation page https://learn.microsoft.com/en-us/graph/api/team-post?view=graph-rest-1.0&tabs=http. I can confirm the problem is extending outside of the scope of the above example. I posted this here as I cannot find a bug reporting facility.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,077 questions
{count} votes

Accepted answer
  1. Danstan Onyango 3,816 Reputation points Microsoft Employee
    2021-02-23T12:04:05.73+00:00

    @Ivor Denham-Dyson I have tested this and found the issue is with tabs in one of the channels in the request payload. For a case where you don't need the tabs, you can try without them. Something like below

    POST https://graph.microsoft.com/v1.0/teams  
    Content-Type: application/json  
      
    {  
        "template@odata.bind": "https://graph.microsoft.com/v1.0/teamsTemplates('standard')",  
        "visibility": "Private",  
        "displayName": "Sample Engineering Team",  
        "description": "This is a sample engineering team, used to showcase the range of properties supported by this API",  
        "channels": [  
            {  
                "displayName": "Announcements ๐Ÿ“ข",  
                "isFavoriteByDefault": true,  
                "description": "This is a sample announcements channel that is favorited by default. Use this channel to make important team, product, and service announcements."  
            },  
            {  
                "displayName": "Training ๐Ÿ‹๏ธ",  
                "isFavoriteByDefault": true,  
                "description": "This is a sample training channel, that is favorited by default, and contains an example of pinned website and YouTube tabs.",  
                "tabs": [ ]  
            },  
            {  
                "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  
            },  
            {  
                "displayName": "Issues and Feedback ๐Ÿž",  
                "description": "This is a sample of a channel that is not favorited by default, these channels will appear in the more channels overflow menu."  
            }  
        ],  
        "memberSettings": {  
            "allowCreateUpdateChannels": true,  
            "allowDeleteChannels": true,  
            "allowAddRemoveApps": true,  
            "allowCreateUpdateRemoveTabs": true,  
            "allowCreateUpdateRemoveConnectors": true  
        },  
        "guestSettings": {  
            "allowCreateUpdateChannels": false,  
            "allowDeleteChannels": false  
        },  
        "funSettings": {  
            "allowGiphy": true,  
            "giphyContentRating": "Moderate",  
            "allowStickersAndMemes": true,  
            "allowCustomMemes": true  
        },  
        "messagingSettings": {  
            "allowUserEditMessages": true,  
            "allowUserDeleteMessages": true,  
            "allowOwnerDeleteMessages": true,  
            "allowTeamMentions": true,  
            "allowChannelMentions": true  
        },  
        "discoverySettings": {  
            "showInTeamsSearchAndSuggestions": true  
        },  
        "installedApps": [  
            {  
                "teamsApp@odata.bind": "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.vsts')"  
            },  
            {  
                "teamsApp@odata.bind": "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('1542629c-01b3-4a6d-8f76-1938b779e48d')"  
            }  
        ]  
    }  
    

    As for the error when creating with channel that has tabs, I will get back with I find.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful