5 分鐘了嗎?填寫
這份簡短的問卷調查,協助我們改善 Google Chat 開發人員說明文件。
Method: spaces.messages.patch
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
更新訊息。patch
和 update
方法的差異。patch
方法會使用 patch
要求,而 update
方法會使用 put
要求。建議您使用 patch
方法。如需範例,請參閱「更新訊息」。
需要驗證。完全支援服務帳戶驗證和使用者驗證。使用者驗證。使用服務帳戶進行驗證的要求只能更新呼叫 Chat 應用程式建立的訊息。
HTTP 要求
PATCH https://chat.googleapis.com/v1/{message.name=spaces/*/messages/*}
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
message.name |
string
資源名稱,格式為 spaces/*/messages/* 。 範例:spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB
|
查詢參數
參數 |
updateMask |
string (FieldMask format)
必要欄位。要更新的欄位路徑。請以半形逗號分隔多個值。 目前支援的欄位路徑:
|
allowMissing |
boolean
(選填) 如果為 true 且找不到訊息,系統會建立新訊息並忽略 updateMask 。指定的訊息 ID 必須是 client-assigned 或要求失敗。
|
回應主體
如果成功,回應主體會包含 Message
的執行例項。
授權範圍
需要下列其中一種 OAuth 範圍:
https://www.googleapis.com/auth/chat.bot
https://www.googleapis.com/auth/chat.import
https://www.googleapis.com/auth/chat.messages
詳情請參閱授權指南。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-08-21 (世界標準時間)。
[{
"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":"其他"
}]