---
title: "Update Microsoft Teams settings"
method: PATCH
path: "/v1/sources/teams/{connectionId}/config"
tags: ["Sources"]
---

# Update Microsoft Teams settings

`PATCH /v1/sources/teams/{connectionId}/config`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/sources/teams/{connectionId}/config`
- Auth: HTTP bearer

Changes the settings of a Microsoft Teams connection. Fields left out stay as they were. Allowed to the person who connected it, or a member with the Integrations permission; a personal connection only to the person who connected it.

**Scope:** `sources:write`. A key holding only the legacy `write` scope does not satisfy it.

## Path parameters

- `connectionId` string, uuid, required

## Request body

- object
  - `transcript_size` 'day' | 'week': How much conversation one document holds.
  - `date_range` object, nullable: Only conversations in this period; null for no limit.
    - `from` string, nullable: ISO 8601 date or date-time; null for open.
    - `to` string, nullable: ISO 8601 date or date-time; null for open.
  - `include_attachments` boolean: Bring in shared files.
  - `surface_filter` object
    - `channels` boolean
    - `chats` boolean
    - `meetings` boolean

## Response `200`

The settings after the change.

- object
  - `config` object: The connection settings after the change.

## Other responses

- `400`: The request is invalid.
- `401`: Missing or invalid API key.
- `403`: The API key does not have the required scope.
- `404`: The requested resource was not found.
- `429`: Daily rate limit exceeded.

## Changes

- **2026-11-26** `622d429de7ea`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/sources/teams/:connectionId/config/patch.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
