Skip to content

Commit ef8765f

Browse files
committed
Teams integration mappings
1 parent 282e483 commit ef8765f

5 files changed

Lines changed: 121 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
rank: 3
3+
related_endpoints:
4+
- post_integration_mappings_teams
5+
related_guides:
6+
- integration-mappings/teams-mappings/list-mappings
7+
- integration-mappings/teams-mappings/update-mapping
8+
- integration-mappings/teams-mappings/delete-mapping
9+
required_guides:
10+
- integration-mappings/teams-mappings/index
11+
related_resources: []
12+
alias_paths: []
13+
---
14+
# Create Teams integration mappings
15+
16+
Use the `POST integration_mappings_teams` call to create a mapping.
17+
To make it work, you need `box_item` and `partner_item` parameters,
18+
which refer to a Box folder and a Teams channel, respectively.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
rank: 5
3+
related_endpoints:
4+
- delete_teams_integration_mappings_id
5+
related_guides:
6+
- integration-mappings/teams-mappings/list-mappings
7+
- integration-mappings/teams-mappings/create-mapping
8+
- integration-mappings/teams-mappings/update-mapping
9+
required_guides: []
10+
related_resources: []
11+
alias_paths: []
12+
---
13+
# Delete Teams integration mappings
14+
15+
The `DELETE integration_mappings_teams_id` call removes the mapping between
16+
the channel and the folder.
17+
A new mapping and a new folder in the default folder structure will be created
18+
when the next file is uploaded to the channel.
19+
Deleting the mapping does not delete the Box folder, or the Teams channel.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
rank: 1
3+
related_endpoints:
4+
- delete_teams_integration_mappings_id
5+
- get_integration_mappings_teams
6+
- post_integration_mappings_teams
7+
- put_integration_mappings_teams_id
8+
related_guides:
9+
- integration-mappings/teams-mappings/list-mappings
10+
- integration-mappings/teams-mappings/create-mapping
11+
- integration-mappings/teams-mappings/update-mapping
12+
- integration-mappings/teams-mappings/delete-mapping
13+
required_guides: []
14+
related_resources: []
15+
alias_paths: []
16+
---
17+
# Teams integration mappings
18+
19+
Before you can start working with [Teams][2] integration mapping API,
20+
perform the below steps.
21+
22+
## Prerequisites
23+
24+
* Admin or Co-Admin role
25+
* [Box for Microsoft Teams][1] integration installed
26+
27+
## Create a Box application
28+
29+
1. Create a [platform app with OAuth authentication][3] in the [Box developer console][4].
30+
2. Open the application and enable the **Manage enterprise properties** application scope under **Configuration** > **Required Access Scopes**.
31+
32+
## Authorization
33+
34+
To authorize your integration mappings requests:
35+
36+
1. Navigate to the [platform app][5] that you have created as one of the prerequisites.
37+
2. Generate a [developer token][6] and add it to the HTTP header of each request:
38+
39+
```bash
40+
Authorization: Bearer {developer_token}
41+
```
42+
43+
<Message info>
44+
The developer token is valid for 60 minutes. After that time you need
45+
to generate it again.
46+
</Message>
47+
48+
[1]: https://support.box.com/hc/en-us/articles/360050737154-Assigning-a-Default-Box-Folder-to-a-Teams-Channel-or-Chat
49+
[2]: https://support.box.com/hc/en-us/articles/360044667034-Introducing-Box-for-Microsoft-Teams
50+
[3]: g://authentication/oauth2/oauth2-setup
51+
[4]: https://app.box.com/developers/console
52+
[5]: g://applications/app-types/platform-apps
53+
[6]: g://authentication/tokens/developer-tokens
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
rank: 2
3+
related_endpoints:
4+
- get_integration_mappings_teams
5+
related_guides: []
6+
required_guides:
7+
- integration-mappings/teams-mappings/index
8+
related_resources: []
9+
alias_paths: []
10+
---
11+
# List Teams integration mappings
12+
13+
Use the `GET /integration_mappings/teams` call to fetch and filter the mappings,
14+
both the ones created manually by the admin those created automatically by the
15+
integration.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
rank: 4
3+
related_endpoints:
4+
- put_integration_mappings_teams_id
5+
related_guides:
6+
- integration-mappings/teams-mappings/list-mappings
7+
- integration-mappings/teams-mappings/create-mapping
8+
- integration-mappings/teams-mappings/delete-mapping
9+
required_guides: []
10+
related_resources: []
11+
alias_paths: []
12+
---
13+
# Update Teams integration mappings
14+
15+
Use the `PUT integration_mappings_teams_id` call to update the
16+
existing mapping or the target Box folder.

0 commit comments

Comments
 (0)