Notification types
joinRequestApproved
Fired when a join request is approved.
Delivered as the
notification socket event with type set to joinRequestApproved.Fired when a join request is approved.
Payload for the join request approved event.
Token keys marked with (*) will be deprecated in a future release and should not be used for new development; replace them with the values and objects in the changes key in existing implementations.
Payload
| Property | Type | Required | Description |
|---|---|---|---|
type | string | yes | The specific type of notification event (matches the top-level key, e.g., 'workspaceCreate'). Every value in notificationTemplates (config/notifications.js) is documented in this tag. |
initiatorId | string (uuid) | no | ID of the user or system that initiated the event. Null if initiatorType is 'system'. |
initiatorType | "user" | "system" | yes | Type of initiator (user or system). |
initiator | object | null | no | Populated initiator user object (if initiatorType is 'user'). |
resourceId | string (uuid) | yes | ID of the primary resource this notification pertains to. |
resourceType | string | yes | Type of the primary resource this notification pertains to. |
channels | string[] | no | The specific channels this notification was published on. Present on notification objects returned by the REST API only; the socket 'notification' payload omits it (and id). |
createdAt | string (date-time) | yes | Timestamp when the notification was created. |
tokens | object | no |
tokens
| Property | Type | Required | Description |
|---|---|---|---|
(*)requestId | string (uuid) | no | |
(*)projectId | string (uuid) | no | |
(*)projectName | string | no | Carried in the token rather than looked up, because the recipient may have no access to fetch it. |
(*)workspaceId | string (uuid) | no | |
(*)roles | string[] | no | The roles the request was admitted for. A project has a creator half and a reviewer half; this is what decides which one the deep link opens. |