Method: subscriptions.delete

Google Workspace サブスクリプションを削除します。この方法の使用方法については、Google Workspace サブスクリプションを削除するをご覧ください。

HTTP リクエスト

DELETE https://workspaceevents.googleapis.com/v1/{name=subscriptions/*}

この URL は gRPC Transcoding 構文を使用します。

パスパラメータ

パラメータ
name

string

必須。削除するサブスクリプションのリソース名。

形式: subscriptions/{subscription}

クエリ パラメータ

パラメータ
validateOnly

boolean

省略可。true に設定すると、リクエストが検証され、プレビューされますが、サブスクリプションは削除されません。

allowMissing

boolean

省略可。true に設定されていて、サブスクリプションが見つからない場合、リクエストは成功しますが、サブスクリプションは削除されません。

etag

string

省略可。サブスクリプションの Etag。

指定する場合は、サーバーの ETag と一致する必要があります。それ以外の場合、リクエストはステータス ABORTED で失敗します。

リクエストの本文

リクエストの本文は空にする必要があります。

レスポンスの本文

成功した場合、レスポンスの本文には Operation のインスタンスが含まれます。

  • metadata フィールドに空の配列が含まれています。
  • 'response' フィールドが空です。

認可スコープ

次の OAuth スコープのいずれかが必要です。

  • https://www.googleapis.com/auth/chat.bot
  • 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

詳しくは、承認ガイドをご覧ください。