重新激活已暂停的 Google Workspace 订阅。
此方法会将订阅的 State
字段重置为 ACTIVE
。在使用此方法之前,您必须先修正导致订阅中止的错误。此方法会忽略或拒绝当前未处于暂停状态的任何订阅。如需了解如何使用此方法,请参阅重新激活 Google Workspace 订阅。
对于聊天目标资源上的订阅,您可以按以下方式重新激活订阅:
通过指定以
chat.app
开头的授权范围并获得一次性管理员批准(开发者预览版)。如需了解详情,请参阅在获得管理员批准的情况下以 Chat 应用的身份进行授权。用户,方法是指定名称中不包含
app
的授权范围。如需了解详情,请参阅以 Chat 用户身份进行授权。
HTTP 请求
POST https://workspaceevents.googleapis.com/v1beta/{name=subscriptions/*}:reactivate
网址采用 gRPC 转码语法。
路径参数
参数 | |
---|---|
name |
必需。相应订阅的资源名称。 格式: |
请求正文
请求正文必须为空。
响应正文
如果成功,则响应正文包含一个 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/chat.app.memberships
https://www.googleapis.com/auth/chat.app.messages.readonly
https://www.googleapis.com/auth/chat.app.spaces
https://www.googleapis.com/auth/meetings.space.created
https://www.googleapis.com/auth/meetings.space.readonly
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.file
https://www.googleapis.com/auth/drive.metadata
https://www.googleapis.com/auth/drive.metadata.readonly
https://www.googleapis.com/auth/drive.readonly
如需了解详情,请参阅授权指南。