REST Resource: users.spaces.spaceNotificationSetting | Google Chat | Google for Developers (original) (raw)
SpaceNotificationSetting allows you to manage a user's notification settings within a Google Chat space.
You can configure notification triggers for various events like @mentions, new threads, and followed threads using NotificationSetting.
MuteSetting enables you to mute or unmute all notifications for a space, overriding the NotificationSetting.
This feature is currently in Developer Preview and accessible through the Google Workspace Developer Preview Program.
Use the
getandpatchmethods to retrieve and update space notification settings respectively.
The notification setting of a user in a space.
| JSON representation |
|---|
| { "name": string, "notificationSetting": enum (NotificationSetting), "muteSetting": enum (MuteSetting) } |
| Fields | |
|---|---|
| name | string Identifier. The resource name of the space notification setting. Format: users/{user}/spaces/{space}/spaceNotificationSetting. |
| notificationSetting | enum (NotificationSetting) The notification setting. |
| muteSetting | enum (MuteSetting) The space notification mute setting. |
NotificationSetting
The notification setting types. Other types might be supported in the future.
| Enums | |
|---|---|
| NOTIFICATION_SETTING_UNSPECIFIED | Reserved. |
| ALL | Notifications are triggered by @mentions, followed threads, first message of new threads. All new threads are automatically followed, unless manually unfollowed by the user. |
| MAIN_CONVERSATIONS | The notification is triggered by @mentions, followed threads, first message of new threads. Not available for 1:1 direct messages. |
| FOR_YOU | The notification is triggered by @mentions, followed threads. Not available for 1:1 direct messages. |
| OFF | Notification is off. |
MuteSetting
The space notification mute setting types.
| Enums | |
|---|---|
| MUTE_SETTING_UNSPECIFIED | Reserved. |
| UNMUTED | The user will receive notifications for the space based on the notification setting. |
| MUTED | The user will not receive any notifications for the space, regardless of the notification setting. |
| Methods | |
|---|---|
| get | Gets the space notification setting. |
| patch | Updates the space notification setting. |