Mutation
mutation CreateMySlackIntegration($input: CreateMySlackIntegrationInput!) {
createMySlackIntegration(input: $input) {
integration {
integrationId
slackTeamName
isReinstallRequired
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
__typename
}
}
updatedAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"authCode": "string",
"redirectUrl": "string"
}
}Response
{
"data": {
"createMySlackIntegration": {
"integration": {
"integrationId": "id",
"slackTeamName": "string",
"isReinstallRequired": true,
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor"
},
"updatedAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
createMySlackIntegration
Connects the current user’s personal Slack notifications integration using an OAuth auth code obtained from the Slack OAuth flow. Get the installation URL from mySlackInstallationInfo.
MUTATION
createMySlackIntegration(input: CreateMySlackIntegrationInput!): CreateMySlackIntegrationOutput!Arguments
input
required
Returns
integration
error
Mutation
mutation CreateMySlackIntegration($input: CreateMySlackIntegrationInput!) {
createMySlackIntegration(input: $input) {
integration {
integrationId
slackTeamName
isReinstallRequired
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
__typename
}
}
updatedAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"authCode": "string",
"redirectUrl": "string"
}
}Response
{
"data": {
"createMySlackIntegration": {
"integration": {
"integrationId": "id",
"slackTeamName": "string",
"isReinstallRequired": true,
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor"
},
"updatedAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

