Microsoft Teams · Arazzo Workflow

Microsoft Teams Archive Team

Version 1.0.0

Confirm a team is active and then archive it, making it read-only.

1 workflow 1 source API 1 provider
View Spec View on GitHub ChatCollaborationCommunicationsMicrosoft-365ProductivityVideo ConferencingArazzoWorkflows

Provider

microsoft-teams

Workflows

archive-team
Confirm a team and archive it, branching when already archived.
Reads the team to confirm it exists, and when it is not already archived, submits the archive request. When the team is already archived the flow ends without re-archiving.
2 steps inputs: accessToken, setSpoSiteReadOnly, teamId outputs: wasArchived
1
getTeam
Read the team to confirm it exists and inspect its archive state.
2
archiveTeam
Submit the archive request. Microsoft Graph accepts archiving as an asynchronous operation and returns 202 Accepted.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Microsoft Teams Archive Team
  summary: Confirm a team is active and then archive it, making it read-only.
  description: >-
    Decommissioning a team should be deliberate. This workflow confirms the team
    exists and is not already archived, then submits an archive request that
    Microsoft Graph accepts as an asynchronous operation. Every step spells out
    its request inline so the flow can be read and executed without opening the
    underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: teamsApi
  url: ../openapi/microsoft-teams-teams-api-openapi.yml
  type: openapi
workflows:
- workflowId: archive-team
  summary: Confirm a team and archive it, branching when already archived.
  description: >-
    Reads the team to confirm it exists, and when it is not already archived,
    submits the archive request. When the team is already archived the flow ends
    without re-archiving.
  inputs:
    type: object
    required:
    - accessToken
    - teamId
    properties:
      accessToken:
        type: string
        description: OAuth 2.0 bearer token with TeamSettings.ReadWrite.All scope.
      teamId:
        type: string
        description: The unique identifier of the team to archive.
      setSpoSiteReadOnly:
        type: boolean
        description: Whether the SharePoint site should be set to read-only for members.
        default: false
  steps:
  - stepId: getTeam
    description: >-
      Read the team to confirm it exists and inspect its archive state.
    operationId: getTeam
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    - name: team-id
      in: path
      value: $inputs.teamId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      isArchived: $response.body#/isArchived
    onSuccess:
    - name: notArchived
      type: goto
      stepId: archiveTeam
      criteria:
      - context: $response.body
        condition: $.isArchived == false
        type: jsonpath
    - name: alreadyArchived
      type: end
      criteria:
      - context: $response.body
        condition: $.isArchived == true
        type: jsonpath
  - stepId: archiveTeam
    description: >-
      Submit the archive request. Microsoft Graph accepts archiving as an
      asynchronous operation and returns 202 Accepted.
    operationId: archiveTeam
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    - name: team-id
      in: path
      value: $inputs.teamId
    requestBody:
      contentType: application/json
      payload:
        shouldSetSpoSiteReadOnlyForMembers: $inputs.setSpoSiteReadOnly
    successCriteria:
    - condition: $statusCode == 202
  outputs:
    wasArchived: $steps.getTeam.outputs.isArchived

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/microsoft-teams-archive-team-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.