Method: matters.addPermissions
HTTP 请求
POST https://vault.googleapis.com/v1/matters/{matterId}:addPermissions
网址采用 gRPC 转码语法。
路径参数
参数 |
matterId |
string
相关事项 ID。
|
请求正文
请求正文中包含结构如下的数据:
JSON 表示法 |
{
"matterPermission": {
object (MatterPermission )
},
"sendEmails": boolean,
"ccMe": boolean
} |
字段 |
matterPermission |
object (MatterPermission )
要添加的账号及其角色。
|
sendEmails |
boolean
如需向添加的账号发送通知电子邮件,请将其设为 true。如需不发送通知电子邮件,请将其设置为 false。
|
ccMe |
boolean
仅当 sendEmails 为 true 时才相关。如需在电子邮件中抄送请求者,请将其设置为 true。如需不抄送请求方,请将其设置为 false。
|
响应正文
如果成功,则响应正文包含一个 MatterPermission
实例。
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/ediscovery
如需了解详情,请参阅 OAuth 2.0 Overview。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-02-06。
[null,null,["最后更新时间 (UTC):2025-02-06。"],[[["Adds an account as a collaborator to a specified matter using the provided matter ID."],["Requires a request body specifying the account's permissions, along with optional notification email settings."],["Uses the `POST https://vault.googleapis.com/v1/matters/{matterId}:addPermissions` endpoint for the operation."],["Utilizes OAuth scope `https://www.googleapis.com/auth/ediscovery` for authorization."],["Returns a MatterPermission object in the response body upon successful completion."]]],["This outlines the process to add an account as a matter collaborator using a POST request to `https://vault.googleapis.com/v1/matters/{matterId}:addPermissions`. The request requires a `matterId` path parameter and a JSON request body containing `matterPermission`, `sendEmails`, and `ccMe` fields. Upon success, it returns a `MatterPermission` object. Authorization requires the `https://www.googleapis.com/auth/ediscovery` OAuth scope. The process allows an option to send an email to the new collaborator, with an option for the requestor to be copied.\n"]]