Mutation
mutation NotificationRuleUpdate($input: NotificationRuleUpdateInput!) {
notificationRuleUpdate(input: $input) {
errors {
code
message
}
notificationRule {
channel {
createdAt
id
integration {
__typename
}
name
namespace {
__typename
}
notificationRules {
__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": {
"id": "value"
}
}Response
{
"data": {
"notificationRuleUpdate": {
"errors": [
{
"code": "RESOURCE_IN_USE",
"message": "string"
}
],
"notificationRule": {
"channel": {
"createdAt": "value",
"id": "value",
"integration": {
"__typename": "Integration"
},
"name": "string",
"namespace": {
"__typename": "Namespace"
},
"notificationRules": [
{
"__typename": "NotificationRule"
}
]
},
"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
notificationRuleUpdate
Update a notification rule. Requires NOTIFICATION_RULES_WRITE permissions.
MUTATION
notificationRuleUpdate(input: NotificationRuleUpdateInput!): NotificationRuleUpdateResult!Arguments
input
required
Returns
errors
[ApiError!]!
notificationRule
The notification rule updated after a successful request.
Mutation
mutation NotificationRuleUpdate($input: NotificationRuleUpdateInput!) {
notificationRuleUpdate(input: $input) {
errors {
code
message
}
notificationRule {
channel {
createdAt
id
integration {
__typename
}
name
namespace {
__typename
}
notificationRules {
__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": {
"id": "value"
}
}Response
{
"data": {
"notificationRuleUpdate": {
"errors": [
{
"code": "RESOURCE_IN_USE",
"message": "string"
}
],
"notificationRule": {
"channel": {
"createdAt": "value",
"id": "value",
"integration": {
"__typename": "Integration"
},
"name": "string",
"namespace": {
"__typename": "Namespace"
},
"notificationRules": [
{
"__typename": "NotificationRule"
}
]
},
"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"
}
}
}
}
}