diff --git a/content/reference.mdx b/content/reference.mdx index 61ae2454..5c64e54e 100644 --- a/content/reference.mdx +++ b/content/reference.mdx @@ -6650,6 +6650,8 @@ Revoke an access token from Slack and remove it from the access token object. + + @@ -6738,6 +6740,199 @@ Revoke an access token from Slack and remove it from the access token object. +
+ +Get a list of teams belonging to the Microsoft Entra tenant. + +### Endpoint + + + +### Rate limit + + + +### Path parameters + + + + + +### Query parameters + + + + + + An optional query option passed to the Microsoft Graph API. One of{" "} + $filter, $select, $top,{" "} + $skiptoken. See the{" "} + + Microsoft Graph API documentation + {" "} + for more information. + + } + /> + + +### Returns + +- `200` List of teams in the Microsoft Entra tenant. +- `403` When no Microsoft Entra tenant ID is set for the given object. + + + + +```json +// Success response + +{ + "ms_teams_teams": [ + { + "id": "team-id-1", + "displayName": "Engineering Team" + } + ], + "skip_token": "token-for-next-page" +} +``` + +```json +// Missing Microsoft Entra tenant ID error response + +{ + "code": "authorization", + "message": "Microsoft Teams tenant ID not set.", + "status": 403, + "type": "authentication_error" +} +``` + + +
+ +
+ +Get a list of the Microsoft Teams channels within a team. By default, archived and private channels are excluded from the results. + +### Endpoint + + + +### Rate limit + + + +### Path parameters + + + + + +### Query parameters + + + + + + + An optional query option passed to the Microsoft Graph API. One of{" "} + $filter, $select. See the{" "} + + Microsoft Graph API documentation + {" "} + for more information. + + } + /> + + +### Returns + +- `200` List of Microsoft Teams channels in the specified team. +- `403` When no Microsoft Entra tenant ID is set for the given object. + + + + +```json +// Success response + +{ + "ms_teams_channels": [ + { + "id": "channel-id-1", + "displayName": "General" + } + ] +} +``` + +```json +// Missing Microsoft Entra tenant ID error response + +{ + "code": "authorization", + "message": "Microsoft Teams tenant ID not set.", + "status": 403, + "type": "authentication_error" +} +``` + + +
+
Removes a Microsoft Entra tenant ID from the Microsoft Teams tenant object. diff --git a/data/apiReferenceSidebar.ts b/data/apiReferenceSidebar.ts index 8993dd24..4c84e8d0 100644 --- a/data/apiReferenceSidebar.ts +++ b/data/apiReferenceSidebar.ts @@ -194,6 +194,8 @@ const sidebarContent: SidebarSection[] = [ pages: [ { slug: "#ms-teams", title: "Overview" }, { slug: "#ms-teams-auth-check", title: "Auth check" }, + { slug: "#ms-teams-teams", title: "Teams" }, + { slug: "#ms-teams-channels", title: "Channels" }, { slug: "#ms-teams-revoke-access", title: "Revoke access" }, ], },