Method: subscriptions.patch
HTTP 要求
PATCH https://workspaceevents.googleapis.com/v1beta/{subscription.name=subscriptions/*}
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
subscription.name |
string
ID。訂閱項目的資源名稱。 格式:subscriptions/{subscription}
|
查詢參數
參數 |
updateMask |
string (FieldMask format)
選用設定。要更新的欄位。如果省略,系統會更新要求中包含的任何欄位。 您可以在訂閱中更新下列任一欄位:
如要完全取代訂閱項目 (相當於 PUT 的訂閱項目),請使用 * 。所有省略的欄位都會更新為空白值。
|
validateOnly |
boolean
選用設定。如果設為 true ,則可驗證及預覽要求,但不會更新訂閱項目。
|
要求主體
要求主體包含 Subscription
的例項。
回應主體
如果成功,回應主體會包含 Operation
的執行例項。
授權範圍
需要下列其中一種 OAuth 範圍:
https://www.googleapis.com/auth/chat.spaces
https://www.googleapis.com/auth/chat.spaces.readonly
https://www.googleapis.com/auth/chat.messages
https://www.googleapis.com/auth/chat.messages.readonly
https://www.googleapis.com/auth/chat.messages.reactions
https://www.googleapis.com/auth/chat.messages.reactions.readonly
https://www.googleapis.com/auth/chat.memberships
https://www.googleapis.com/auth/chat.memberships.readonly
https://www.googleapis.com/auth/meetings.space.created
https://www.googleapis.com/auth/meetings.space.readonly
詳情請參閱授權指南。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-05 (世界標準時間)。
[null,null,["上次更新時間:2024-11-05 (世界標準時間)。"],[[["This API updates or renews a Google Workspace subscription using a PATCH request to the specified URL."],["You can optionally specify an `updateMask` to target specific fields for updating and `validateOnly` to preview the request without applying changes."],["The request body should contain a `Subscription` object and the successful response will include an `Operation` object with the updated `Subscription`."],["Authorization requires specific OAuth scopes related to Google Chat or Google Meet, as detailed in the documentation."]]],["This documentation details updating Google Workspace subscriptions via a `PATCH` HTTP request to `https://workspaceevents.googleapis.com/v1beta/{subscription.name=subscriptions/*}`. Key actions involve specifying the subscription name in the path and using `updateMask` in query parameters to selectively modify fields like `expireTime`, `ttl`, or `eventTypes`. The request body contains subscription details, while the successful response includes an `Operation` with the updated subscription. Authentication requires specific OAuth scopes. The process allows for request validation without actual modification.\n"]]