Requires the Admin role. Permissions

createProviderProfile(
  organizationId: ID!
  providerProfileSpec: ProviderProfileSpec!
): ProviderProfile!

Arguments

Field

Type

Returns

ProviderProfile!

Field

Type

Example

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
      }
    }
  }
}

Example response

{
  "data": {
    "createProviderProfile": {
      "id": "01JB3X7T9QK2M4N6P8R0S2T4V6",
      "name": "Example name",
      "type": "MAIL",
      "configuration": {
        "__typename": "SlackAppProviderProfileConfig",
        "teamName": "Example teamName"
      }
    }
  }
}

On this page