Mutation
mutation CreateMyMSTeamsIntegration($input: CreateMyMSTeamsIntegrationInput!) {
createMyMSTeamsIntegration(input: $input) {
integration {
id
msTeamsTenantId
isReinstallRequired
msTeamsPreferredUsername
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
__typename
}
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"authCode": "id",
"redirectUrl": "string"
}
}Response
{
"data": {
"createMyMSTeamsIntegration": {
"integration": {
"id": "id",
"msTeamsTenantId": "id",
"isReinstallRequired": true,
"msTeamsPreferredUsername": "string",
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
createMyMSTeamsIntegration
Connects the current user’s personal Microsoft Teams account to Plain using the OAuth authorization code obtained after completing the installation flow from myMSTeamsInstallationInfo.
MUTATION
createMyMSTeamsIntegration(input: CreateMyMSTeamsIntegrationInput!): CreateMyMSTeamsIntegrationOutput!Arguments
input
required
Returns
integration
error
Mutation
mutation CreateMyMSTeamsIntegration($input: CreateMyMSTeamsIntegrationInput!) {
createMyMSTeamsIntegration(input: $input) {
integration {
id
msTeamsTenantId
isReinstallRequired
msTeamsPreferredUsername
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
__typename
}
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"authCode": "id",
"redirectUrl": "string"
}
}Response
{
"data": {
"createMyMSTeamsIntegration": {
"integration": {
"id": "id",
"msTeamsTenantId": "id",
"isReinstallRequired": true,
"msTeamsPreferredUsername": "string",
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

