displayName:僅支援更新 spaceType 欄位為 SPACE 的空間顯示名稱。如果收到 ALREADY_EXISTS 錯誤訊息,請嘗試輸入其他值。Google Workspace 機構中現有的聊天室可能已使用這個顯示名稱。
spaceType:僅支援將 GROUP_CHAT 空間類型變更為 SPACE。在更新遮罩中一併納入 displayName 和 spaceType,並確保指定空間的顯示名稱不得為空值,且空間類型為 SPACE。如果現有空間已有 SPACE 類型,更新顯示名稱時,您可選擇是否要在指定空間中加入 spaceType 遮罩和 SPACE 類型。如果嘗試以其他方式更新空間類型,會導致無效引數錯誤。「spaceType」不支援「useAdminAccess」。
spaceHistoryState:開啟或關閉聊天室記錄,即可更新聊天室記錄設定。只有在 Google Workspace 機構啟用記錄設定時,系統才會支援這項功能。如要更新空間記錄狀態,您必須在要求中省略所有其他欄位遮罩。「spaceHistoryState」不支援「useAdminAccess」。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-11-18 (世界標準時間)。"],[],["This content describes how to update a space within Google Workspace Chat via the API. Key actions include sending a `PATCH` request to `https://chat.googleapis.com/v1/{space.name=spaces/*}`, specifying the space's name in the path. The `updateMask` query parameter defines which fields to update, including space details, display name, type, history state, access and permissions. `useAdminAccess` allow to update the space with administrator permissions. Authentication requires specific OAuth scopes. The request and response body use the `Space` object.\n"]]