Skip to main content

Notification

Notification delivery rule returned by notificationsList, notificationCreate, and notificationEdit.

type Notification {
id: Int!
siteId: Int!
resource: NotificationResource!
resourceId: String!
action: NotificationAction!
enabled: Boolean!
createdAt: Int!
resourceName: String!
createdBy: User
channel: Channel!
}

Fields​

Notification.id ● Int! non-null scalar​

Notification.siteId ● Int! non-null scalar​

Site the rule belongs to; pass it as siteId to notificationEdit and channelsList.

Notification.resource ● NotificationResource! non-null enum​

Notification.resourceId ● String! non-null scalar​

Resource id stored as a string; interpreted according to resource.

Notification.action ● NotificationAction! non-null enum​

Notification.enabled ● Boolean! non-null scalar​

Whether the rule is enabled for notification delivery.

Notification.createdAt ● Int! non-null scalar​

Rule creation time in Unix seconds.

Notification.resourceName ● String! non-null scalar​

Name of the goal, survey, or site the rule watches.

Notification.createdBy ● User object​

Creating user, with saved id/name fallback when the user no longer exists.

Notification.channel ● Channel! non-null object​

Returned By​

notificationCreate mutation ● notificationEdit mutation

Member Of​

NotificationsListMeta object