Method: users.spaces.spaceNotificationSetting.patch
Yêu cầu HTTP
PATCH https://chat.googleapis.com/v1/{spaceNotificationSetting.name=users/*/spaces/*/spaceNotificationSetting}
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
spaceNotificationSetting.name |
string
Giá trị nhận dạng. Tên tài nguyên của chế độ cài đặt thông báo của không gian. Định dạng: users/{user}/spaces/{space}/spaceNotificationSetting .
|
Tham số truy vấn
Thông số |
updateMask |
string (FieldMask format)
Bắt buộc. Đường dẫn trường được hỗ trợ: – notificationSetting – muteSetting
|
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của SpaceNotificationSetting
.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một phiên bản của SpaceNotificationSetting
.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/chat.users.spacesettings
Để biết thêm thông tin, hãy xem Hướng dẫn uỷ quyền.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-02-27 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-02-27 UTC."],[[["This feature updates space notification state settings in Google Chat, allowing users to customize their notification preferences."],["Users can modify notification settings and mute settings for specific spaces."],["Requires user authentication and authorization with the `chat.users.spacesettings` scope."],["Developers can access this feature as part of the Google Workspace Developer Preview Program."],["Utilizes a PATCH request and gRPC Transcoding syntax for updating space notification settings."]]],["This API endpoint updates space notification settings via a PATCH request to `https://chat.googleapis.com/v1/{spaceNotificationSetting.name=users/*/spaces/*/spaceNotificationSetting}`. It requires user authentication and a specific OAuth scope. The `spaceNotificationSetting.name` is a path parameter, and `updateMask` is a query parameter. The request body and response body contain `SpaceNotificationSetting` instances. It's part of the Google Workspace Developer Preview Program, using gRPC Transcoding.\n"]]