- When someone registers the user to a training (
USER_REGISTERED_TO_TRAINING); - One month before a certification expiration (
ONE_MONTH_CERT_EXPIRATION); - When a certification has expired (
CERT_EXPIRED); - When a user completes a training (
TRAINING_COMPLETED); - When a new badge is earned (
BADGE_EARNED); - For all community members (except the post author) when a new post is added (if the related setting is enabled for the community) (
NEW_COMMUNITY_POST); - When someone added a comment on the user’s post (
POST_COMMENTED); - When someone liked the user’s post or comment (
POST_LIKED); - When a new connection invitation is created (
NEW_USER_INVITATION); - When the user’s connection invitation is accepted (
USER_INVITATION_ACCEPTED).
Notification API object
Notification object represents a single notification data:
| Parameter | Type | Description |
|---|---|---|
id | ID | Required. The notification ID. |
text | String | Required. The notification text. |
type | NotificationType | Required. The type of the notification that can be used for the results filtering. |
created | Int | Required. A timestamp when the notification was created. |
status | NotificationStatus | Required. The notification status (read/unread). Can be used to filter the query results. |
relatedEntity | NotificationRelatedEntity | An entity that triggered the notification creation. Contains an API object that represents the entity. |
cta | [Cta] | Contains the list of Call To Action objects available for the given notification. |
Notification CTA
The list of available CTAs can differ depending on the notification type.| Action ID | Description | Corresponding mutation/query |
|---|---|---|
VIEW_LP | Allows to view the learning path related to the notification. | getLearningPath, example |
VIEW_POST | Allows to view the post/comment related to the notification. | getPost |
ACCEPT_USER_INVITATION | Allows to accept the user invitation related to the notification and add the invitation initiator to the current user’s network. | acceptUserInvitation |
DECLINE_USER_INVITATION | Allows to decline the user invitation related to the notification. | declineUserInvitation |
VIEW_USER_CONTEXT | View the related user context. | getUserContext |