Microsoft Teams (GraphQL)

Related queries and mutations in Notifications. Each has its own section.

Queries

getMsTeamsChannels (query)

getMsTeamsChannels is a query in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Arguments

ArgumentTypeDescription
teamIdString
nameContainsString
limitIntDefault: 100.
offsetIntDefault: 0.

Returns

MsTeamsChannelList

Example

query GetMsTeamsChannels {
  getMsTeamsChannels {
    channels {
      id
      teamId
      name
    }
  }
}

Types used only by getMsTeamsChannels

MsTeamsChannel

Object type.

FieldTypeDescription
idString!Channel ID (MS-specific)
teamIdString!ID of the team the channel belongs to
nameStringHuman readable channel name
MsTeamsChannelList

Object type.

FieldTypeDescription
channels[MsTeamsChannel]

getMsTeamsIntegrations (query)

getMsTeamsIntegrations is a query in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Returns

MsTeamsInstallationList

Example

query GetMsTeamsIntegrations {
  getMsTeamsIntegrations {
    installLink
  }
}

Types used only by getMsTeamsIntegrations

MsTeamsInstallation

Object type.

FieldTypeDescription
uuidUUID!
nameString!Name of the installation
teamLinkString
teamIdString
lastErrorMessageStringLast error message received when sending a notification to this MS Teams integration, if any
MsTeamsInstallationList

Object type.

FieldTypeDescription
installLinkString!
installations[MsTeamsInstallation]!

Related types

UUID

Mutations

linkMsTeamsInstallation (mutation)

linkMsTeamsInstallation is a mutation in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Arguments

ArgumentTypeDescription
codeString!Security code passed from MS Teams
installationIdString!MS Teams App installation id

Returns

LinkMsTeamsInstallation

Example

mutation LinkMsTeamsInstallation($code: String!, $installationId: String!) {
  linkMsTeamsInstallation(code: $code, installationId: $installationId) {
    success
  }
}

Types used only by linkMsTeamsInstallation

LinkMsTeamsInstallation

Object type.

FieldTypeDescription
successBooleanTrue if linking the installation was successful

Source: The GraphQL API reference

This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.