Add app to team

Namespace: microsoft.graph

Install an app to the specified team.

Note: Currently, this operation does not support installation of apps that require resource-specific consent permissions. For details, see Known issues.

Permissions

One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) TeamsAppInstallation.ReadWriteSelfForTeam, TeamsAppInstallation.ReadWriteForTeam, Group.ReadWrite.All**, Directory.ReadWrite.All**
Delegated (personal Microsoft account) Not supported.
Application TeamsAppInstallation.ReadWriteSelfForTeam.All, TeamsAppInstallation.ReadWriteForTeam.All, Group.ReadWrite.All**, Directory.ReadWrite.All**

Note: Permissions marked with ** are supported only for backward compatibility. We recommend that you update your solutions to use an alternative permission listed in the previous table and avoid using these permissions going forward.

HTTP request

POST /teams/{team-id}/installedApps

Request headers

Header Value
Authorization Bearer {token}. Required.

Request body

Property Type Description
teamsApp String The id of the app to add.

Response

If successful, this method returns a 200 OK response code. It does not return anything in the response body.

Example

Request

The following is an example of the request.

POST /teams/87654321-0abc-zqf0-321456789q/installedApps
Content-type: application/json

{
   "teamsApp@odata.bind":"https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/12345678-9abc-def0-123456789a"
}

Response

The following is an example of the response.

HTTP/1.1 200 OK