users

PATCH /v1/users/{usersId}/spaces/{spacesId}/spaceNotificationSetting

Updates the space notification setting. For an example, see Update the caller's space notification setting. Requires user authentication with the authorization scope: - https://www.googleapis.com/auth/chat.users.spacesettings

Request

  • Base URL
    https://chat.googleapis.com
  • URL
    https://chat.googleapis.com/v1/users/{usersId}/spaces/{spacesId}/spaceNotificationSetting
  • Auth
    OAuth 2 and OAuth 2
    Implicit: https://accounts.google.com/o/oauth2/auth
    Scopes: https://www.googleapis.com/auth/chat.users.spacesettings
    Authorization code: https://accounts.google.com/o/oauth2/auth
    Token URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/chat.users.spacesettings

Path parameters

usersIdstring required
spacesIdstring required

Query parameters

updateMaskstring google-fieldmask

Required. Supported field paths: - notification_setting - mute_setting

Request body

muteSetting'MUTE_SETTING_UNSPECIFIED' | 'UNMUTED' | 'MUTED'

The space notification mute setting.

namestring

Identifier. The resource name of the space notification setting. Format: users/{user}/spaces/{space}/spaceNotificationSetting.

notificationSetting'NOTIFICATION_SETTING_UNSPECIFIED' | 'ALL' | 'MAIN_CONVERSATIONS' | 'FOR_YOU' | 'OFF'

The notification setting.

Response

Successful response

muteSetting'MUTE_SETTING_UNSPECIFIED' | 'UNMUTED' | 'MUTED'

The space notification mute setting.

namestring

Identifier. The resource name of the space notification setting. Format: users/{user}/spaces/{space}/spaceNotificationSetting.

notificationSetting'NOTIFICATION_SETTING_UNSPECIFIED' | 'ALL' | 'MAIN_CONVERSATIONS' | 'FOR_YOU' | 'OFF'

The notification setting.

Changes

No recorded changes to this operation across all 9 revisions of this API.