Method: subscriptions.delete

删除 Google Workspace 订阅。如需了解如何使用此方法,请参阅删除 Google Workspace 订阅

HTTP 请求

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

网址采用 gRPC 转码语法。

路径参数

参数
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

有关详情,请参阅授权指南