Notification types
settingsUpdate
Fired when a user's settings for a resource are updated or reset.
Delivered as the
notification socket event with type set to settingsUpdate.Fired when a user's settings for a resource are updated or reset. Published on user/{userId} only.
Payload for the settingsUpdate event.
Payload
| Property | Type | Required | Description |
|---|---|---|---|
type | string | yes | The specific type of notification event (matches the top-level key, e.g., 'workspaceCreate'). Every notification type is documented as its own event in this reference. |
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 | |
changes | object | no | changes.update on update, changes.delete on reset. resourceId of the entry is the user ID. |
tokens
| Property | Type | Required | Description |
|---|---|---|---|
resourceType | string | yes | Type of the resource the settings apply to. |
resourceId | string | yes | |
settings | object | yes | The updated settings (empty object on reset). |
changes
| Property | Type | Required | Description |
|---|---|---|---|
update | object[] | no | |
delete | object[] | no |
update (items)
| Property | Type | Required | Description |
|---|---|---|---|
resourceId | string (uuid) | no | |
resourceType | "settings" | no | |
resource | object | no | The updated settings object. |
delete (items)
| Property | Type | Required | Description |
|---|---|---|---|
resourceId | string (uuid) | no | |
resourceType | "settings" | no |