Method: spaces.patch
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
更新聊天室。需要使用者驗證和 chat.spaces
範圍。
HTTP 要求
PATCH https://chat.googleapis.com/v1/{space.name=spaces/*}
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
space.name |
string
聊天室資源名稱。 格式:空格/{空格}
|
查詢參數
參數 |
updateMask |
string (FieldMask format)
必要欄位。要更新的欄位路徑 (如有多個欄位,請以半形逗號分隔)。 目前支援的欄位路徑:
displayName (僅支援更改使用 SPACE 類型的聊天室顯示名稱,或同時包含 spaceType 遮罩,將 GROUP_CHAT 聊天室類型變更為 SPACE)。嘗試更新 GROUP_CHAT 或 DIRECT_MESSAGE 空格的顯示名稱會導致引數錯誤。)
SpaceType (僅支援將 GROUP_CHAT 聊天室類型變更為 SPACE. 在更新遮罩中加入 displayName 以及 spaceType ,並確認指定的聊天室採用非空白的顯示名稱和 SPACE 空間類型。如果現有聊天室已有 SPACE 類型,則在更新顯示名稱時,您可以選擇是否在指定空格中加入 spaceType 遮罩和 SPACE 類型。如果嘗試以其他方式更新聊天室類型,就會產生無效的引數錯誤)。
空格詳細資料
spaceHistoryState (前提是機構允許使用者變更自己的記錄設定),藉此為聊天室開啟或關閉記錄功能。警告:所有其他欄位路徑互斥)。
|
回應主體
如果成功,回應主體會包含 Space
的執行例項。
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/chat.spaces
詳情請參閱授權指南。
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-01-12 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]