Query
query SlackAutoJoinRules($integrationId: ID!) {
slackAutoJoinRules(integrationId: $integrationId) {
id
integrationId
channelNamePrefix
channelNameSuffix
defaultChannelMode
defaultIngestionMode {
type
manual {
emoji
isCustomerEnabled
}
}
}
}Variables
{
"integrationId": "id"
}Response
{
"data": {
"slackAutoJoinRules": [
{
"id": "id",
"integrationId": "id",
"channelNamePrefix": "string",
"channelNameSuffix": "string",
"defaultChannelMode": "CUSTOMER",
"defaultIngestionMode": {
"type": "TIME_BASED",
"manual": {
"emoji": "string",
"isCustomerEnabled": true
}
}
}
]
}
}Queries
slackAutoJoinRules
Gets the auto-join rules for a workspace slack channel integration.
Rules that have not yet been saved through setSlackAutoJoinRules are
read from the legacy prefix/suffix settings and have a null id.
QUERY
slackAutoJoinRules(integrationId: ID!): [SlackAutoJoinRule!]!Arguments
integrationId
ID!
required
Returns
id
ID
Null for legacy rules read from the prefix/suffix settings that have not
yet been saved through setSlackAutoJoinRules.
integrationId
ID!
The workspace Slack channel integration this rule belongs to.
channelNamePrefix
String!
Plain joins any new Slack channel whose name starts with this string. Empty string means no prefix filter.
channelNameSuffix
String!
Plain joins any new Slack channel whose name ends with this string. Empty string means no suffix filter.
defaultChannelMode
Null means the channel mode is detected automatically (current behaviour).
defaultIngestionMode
Null means the team default ingestion mode applies.
Query
query SlackAutoJoinRules($integrationId: ID!) {
slackAutoJoinRules(integrationId: $integrationId) {
id
integrationId
channelNamePrefix
channelNameSuffix
defaultChannelMode
defaultIngestionMode {
type
manual {
emoji
isCustomerEnabled
}
}
}
}Variables
{
"integrationId": "id"
}Response
{
"data": {
"slackAutoJoinRules": [
{
"id": "id",
"integrationId": "id",
"channelNamePrefix": "string",
"channelNameSuffix": "string",
"defaultChannelMode": "CUSTOMER",
"defaultIngestionMode": {
"type": "TIME_BASED",
"manual": {
"emoji": "string",
"isCustomerEnabled": true
}
}
}
]
}
}Was this page helpful?

