API-Referenz · Notifications · Providers
Create provider profile
Mutation
createProviderProfileConnects a Slack workspace, Discord server or Microsoft Teams team to the organization. An organization can have one provider profile per type.
createProviderProfile(
organizationId: ID!
providerProfileSpec: ProviderProfileSpec!
): ProviderProfile!Argumente
Feld
Typ
Rückgabe
Feld
Typ
Beispiel
mutation CreateProviderProfile($organizationId: ID!, $providerProfileSpec: ProviderProfileSpec!) {
createProviderProfile(organizationId: $organizationId, providerProfileSpec: $providerProfileSpec) {
id
name
type
configuration {
__typename
... on SlackAppProviderProfileConfig {
teamName
}
... on DiscordAppProviderProfileConfig {
guildName
}
... on TeamsProviderProfileConfig {
teamId
teamName
}
... on MailProviderProfileConfig {
fromAddress
fromName
}
}
}
}Beispielantwort
{
"data": {
"createProviderProfile": {
"id": "01JB3X7T9QK2M4N6P8R0S2T4V6",
"name": "Example name",
"type": "MAIL",
"configuration": {
"__typename": "SlackAppProviderProfileConfig",
"teamName": "Example teamName"
}
}
}
}