---
title: "PATCH /v1/users/{usersId}/spaces/{spacesId}/spaceNotificationSetting"
method: PATCH
path: "/v1/users/{usersId}/spaces/{spacesId}/spaceNotificationSetting"
tags: ["users"]
---

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

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

## 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`

Updates the space notification setting. For an example, see [Update the caller's space notification setting](https://developers.google.com/workspace/chat/update-space-notification-setting). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with the [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.users.spacesettings`

## Path parameters

- `usersId` string, required
- `spacesId` string, required

## Query parameters

- `updateMask` string, google-fieldmask

## Request body

- SpaceNotificationSetting: The notification setting of a user in a space.
  - `muteSetting` 'MUTE_SETTING_UNSPECIFIED' | 'UNMUTED' | 'MUTED': The space notification mute setting.
  - `name` string: 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 `200`

Successful response

- SpaceNotificationSetting: The notification setting of a user in a space.
  - `muteSetting` 'MUTE_SETTING_UNSPECIFIED' | 'UNMUTED' | 'MUTED': The space notification mute setting.
  - `name` string: 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.

---

[API](https://skmtc.dev/google/apis/chat.md) - [All operations](https://skmtc.dev/google/apis/chat/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/chat/revisions/ffee5784d4b1?raw)
