> ## Documentation Index
> Fetch the complete documentation index at: https://help.statisfy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Preview the Microsoft Teams channel rules

> What a save of this draft rule would do, from the channels and group chats Statisfy is in: which are read, which start or stop being read, and which links it writes. It saves and links nothing. The totals count only those rows: a save also sets the standard channels Statisfy is not in, and the preview does not count them. The rule's checks are the save's (a 422 for each bad part). Teams need not be connected.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/integrations/microsoft_teams/channel-rules/preview
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/integrations/microsoft_teams/channel-rules/preview:
    post:
      tags:
        - integrations
      summary: Preview the Microsoft Teams channel rules
      description: >-
        What a save of this draft rule would do, from the channels and group
        chats Statisfy is in: which are read, which start or stop being read,
        and which links it writes. It saves and links nothing. The totals count
        only those rows: a save also sets the standard channels Statisfy is not
        in, and the preview does not count them. The rule's checks are the
        save's (a 422 for each bad part). Teams need not be connected.
      operationId: integrations_microsoft_teams_preview_channel_rules
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                id_field:
                  anyOf:
                    - maxLength: 200
                      type: string
                    - type: 'null'
                  description: >-
                    The account CRM field that holds a channel or group chat id;
                    null: none
                  title: Id Field
                name_field:
                  anyOf:
                    - maxLength: 200
                      type: string
                    - type: 'null'
                  description: >-
                    The account CRM field that holds a channel or group chat
                    name; null: none
                  title: Name Field
                prefixes:
                  description: Read the channels whose name starts with one
                  items:
                    maxLength: 200
                    type: string
                  maxItems: 20
                  title: Prefixes
                  type: array
                suffixes:
                  description: Read the channels whose name ends with one
                  items:
                    maxLength: 200
                    type: string
                  maxItems: 20
                  title: Suffixes
                  type: array
              required:
                - id_field
                - name_field
                - prefixes
                - suffixes
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamsChannelRulesPreview'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    TeamsChannelRulesPreview:
      description: >-
        What a save of the draft rule would do; nothing is written. The nested
        parts are plain objects: the

        service's own models share names (PreviewAccount) with another domain's
        models.
      properties:
        rows:
          description: >-
            Each channel or group chat a part matches or whose reading changes:
            the parts, whether it is read now and after the save, its link state
            and the accounts. At most 500 rows
          items:
            additionalProperties: true
            type: object
          title: Rows
          type: array
        totals:
          additionalProperties: true
          description: >-
            Standard channels read and not read after the save, those that start
            and stop being read, and the links: will_link, already_linked,
            conflicts, account_not_found
          title: Totals
          type: object
        truncated:
          description: 'true: more than 500 rows; the totals count all of them'
          title: Truncated
          type: boolean
      required:
        - totals
        - rows
        - truncated
      title: TeamsChannelRulesPreview
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.