Method: subscriptions.patch
HTTP リクエスト
PATCH https://workspaceevents.googleapis.com/v1beta/{subscription.name=subscriptions/*}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
subscription.name |
string
ID。サブスクリプションのリソース名。 形式: subscriptions/{subscription}
|
クエリ パラメータ
パラメータ |
updateMask |
string (FieldMask format)
省略可。更新するフィールド。省略すると、リクエストに含まれるすべてのフィールドが更新されます。 サブスクリプションで更新できるフィールドは次のいずれかです。
expireTime : サブスクリプションの有効期限が切れる時点のタイムスタンプ。
ttl : サブスクリプションの有効期間(TTL)または期間。
eventTypes : ターゲット リソースについて受信するイベントタイプのリスト。
サブスクリプションを完全に置き換える(PUT と同等)には、* を使用します。省略されたフィールドは空の値で更新されます。
|
validateOnly |
boolean
省略可。true に設定すると、リクエストを検証してプレビューしますが、サブスクリプションは更新されません。
|
リクエスト本文
リクエストの本文には Subscription
のインスタンスが含まれます。
レスポンスの本文
成功した場合、レスポンスの本文には Operation
のインスタンスが含まれます。
metadata
フィールドに空の配列が含まれています。response
フィールドには、Subscription
の更新されたインスタンスが含まれます。
認可スコープ
次の 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
詳細については、承認ガイドをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-11-05 UTC。
[null,null,["最終更新日 2024-11-05 UTC。"],[[["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"]]