Adding a Tab on Teams to the default "General" channel with the Graph API

Xavier B 21 Reputation points
2021-02-10T09:34:59.02+00:00

Hi,

We are trying to create a new Team from the Graph API (POST https://graph.microsoft.com/beta/teams).
That works well at the moment. But we can only create a new channel and add our tab, we can’t manage to add a tab on the default general channel on creation through this API. Is there a way to do it with the Beta or V1 apis that is not on the documentation? link doc

{  
      'template@odata.bind': 'https://graph.microsoft.com/beta/teamsTemplates(\'standard\')',  
      visibility: 'Private',  
      displayName: 'Our Super Team',  
      description: '',  
      channels: [  
        {  
          displayName: 'An other Channel',  
          isFavoriteByDefault: true,  
          description: '',  
          tabs: [  
            {  
              'teamsApp@odata.bind': 'https://graph.microsoft.com/v1.0/appCatalogs/teamsApps(\'my.supa.id\')',  
              name: 'Our Tab app',  
              configuration: {  
                contentUrl: 'https://somewhere-on-the-internet'  
              }  
            },  
          ]  
        },  
...  
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,122 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,973 questions
{count} votes

Accepted answer
  1. Jagadeesh-MSFT 331 Reputation points
    2021-02-18T14:55:30.01+00:00

    Currently when you use graph API to create team, the general channel is added by default where we don't have a control. This is by design. You can add tab to general channel after creating a team.

    Thanks,
    Jagadeesh.


    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.


1 additional answer

Sort by: Most helpful
  1. Jagadeesh-MSFT 331 Reputation points
    2021-02-11T10:16:16.32+00:00

    Hi @Xavier B , this document would help you to create a tab for channel using graph API.