Mutation
mutation ChannelCreate($input: ChannelCreateInput!) {
channelCreate(input: $input) {
createdAt
id
integration {
createdAt
id
name
resourceName
updatedAt
}
name
namespace {
apiKeys {
apiKey {
__typename
}
roleConfig {
__typename
}
}
avatar
avatarThumbnail
createdAt
description
id
}
notificationRules {
channel {
__typename
}
config {
mentionOwner
ownerCondition {
__typename
}
priorityCondition {
__typename
}
segmentConditions {
__typename
}
severityCondition {
__typename
}
sourceCondition {
__typename
}
}
createdAt
id
name
namespace {
apiKeys {
__typename
}
avatar
avatarThumbnail
createdAt
description
id
}
}
}
}Variables
{
"input": {
"config": {},
"name": "string",
"namespaceId": "string"
}
}Response
{
"data": {
"channelCreate": {
"createdAt": "value",
"id": "value",
"integration": {
"createdAt": "value",
"id": "value",
"name": "string",
"resourceName": "string",
"updatedAt": "value"
},
"name": "string",
"namespace": {
"apiKeys": [
{
"apiKey": {
"__typename": "ApiKey"
},
"roleConfig": {
"__typename": "NamespaceRoleConfig"
}
}
],
"avatar": "value",
"avatarThumbnail": "value",
"createdAt": "value",
"description": "string",
"id": "value"
},
"notificationRules": [
{
"channel": {
"__typename": "Channel"
},
"config": {
"mentionOwner": true,
"ownerCondition": {
"__typename": "OwnerNotificationRuleCondition"
},
"priorityCondition": {
"__typename": "PriorityNotificationRuleCondition"
},
"segmentConditions": [
{
"__typename": "SegmentNotificationRuleCondition"
}
],
"severityCondition": {
"__typename": "SeverityNotificationRuleCondition"
},
"sourceCondition": {
"__typename": "SourceNotificationRuleCondition"
}
},
"createdAt": "value",
"id": "value",
"name": "string",
"namespace": {
"apiKeys": [
{
"__typename": "ApiKeyRole"
}
],
"avatar": "value",
"avatarThumbnail": "value",
"createdAt": "value",
"description": "string",
"id": "value"
}
}
]
}
}
}Mutations
channelCreate
Create a channel. Requires CHANNELS_WRITE permissions.
MUTATION
channelCreate(input: ChannelCreateInput!): Channel!Arguments
input
required
Returns
createdAt
DateTime!
When the channel was created.
id
ChannelId!
Channel identifier.
integration
name
String!
The display name of the channel.
namespace
notificationRules
[NotificationRule!]!
resourceName
String!
The resource name of the channel.
updatedAt
DateTime!
When the channel was last updated.
Mutation
mutation ChannelCreate($input: ChannelCreateInput!) {
channelCreate(input: $input) {
createdAt
id
integration {
createdAt
id
name
resourceName
updatedAt
}
name
namespace {
apiKeys {
apiKey {
__typename
}
roleConfig {
__typename
}
}
avatar
avatarThumbnail
createdAt
description
id
}
notificationRules {
channel {
__typename
}
config {
mentionOwner
ownerCondition {
__typename
}
priorityCondition {
__typename
}
segmentConditions {
__typename
}
severityCondition {
__typename
}
sourceCondition {
__typename
}
}
createdAt
id
name
namespace {
apiKeys {
__typename
}
avatar
avatarThumbnail
createdAt
description
id
}
}
}
}Variables
{
"input": {
"config": {},
"name": "string",
"namespaceId": "string"
}
}Response
{
"data": {
"channelCreate": {
"createdAt": "value",
"id": "value",
"integration": {
"createdAt": "value",
"id": "value",
"name": "string",
"resourceName": "string",
"updatedAt": "value"
},
"name": "string",
"namespace": {
"apiKeys": [
{
"apiKey": {
"__typename": "ApiKey"
},
"roleConfig": {
"__typename": "NamespaceRoleConfig"
}
}
],
"avatar": "value",
"avatarThumbnail": "value",
"createdAt": "value",
"description": "string",
"id": "value"
},
"notificationRules": [
{
"channel": {
"__typename": "Channel"
},
"config": {
"mentionOwner": true,
"ownerCondition": {
"__typename": "OwnerNotificationRuleCondition"
},
"priorityCondition": {
"__typename": "PriorityNotificationRuleCondition"
},
"segmentConditions": [
{
"__typename": "SegmentNotificationRuleCondition"
}
],
"severityCondition": {
"__typename": "SeverityNotificationRuleCondition"
},
"sourceCondition": {
"__typename": "SourceNotificationRuleCondition"
}
},
"createdAt": "value",
"id": "value",
"name": "string",
"namespace": {
"apiKeys": [
{
"__typename": "ApiKeyRole"
}
],
"avatar": "value",
"avatarThumbnail": "value",
"createdAt": "value",
"description": "string",
"id": "value"
}
}
]
}
}
}