Skip to main content
POST
Preview the Microsoft Teams channel rules

Authorizations

Authorization
string
header
required

An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.

Body

application/json
id_field
string | null
required

The account CRM field that holds a channel or group chat id; null: none

Maximum string length: 200
name_field
string | null
required

The account CRM field that holds a channel or group chat name; null: none

Maximum string length: 200
prefixes
string[]
required

Read the channels whose name starts with one

Maximum array length: 20
Maximum string length: 200
suffixes
string[]
required

Read the channels whose name ends with one

Maximum array length: 20
Maximum string length: 200

Response

200 - application/json

Successful Response

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.

rows
Rows · object[]
required

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

totals
Totals · object
required

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

truncated
boolean
required

true: more than 500 rows; the totals count all of them