Method: matters.holds.accounts.create
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
为保全添加账号。只能向未设置组织部门的保全添加账号。如果您尝试将账号添加到基于组织部门的预授权名单,系统会返回错误。
HTTP 请求
POST https://vault.googleapis.com/v1/matters/{matterId}/holds/{holdId}/accounts
网址采用 gRPC 转码语法。
路径参数
参数 |
matterId |
string
相关事项 ID。
|
holdId |
string
预授权 ID。
|
请求正文
请求正文包含一个 HeldAccount
实例。
响应正文
如果成功,响应正文将包含一个新创建的 HeldAccount
实例。
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/ediscovery
如需了解详情,请参阅授权指南。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# Method: matters.holds.accounts.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nAdds an account to a hold. Accounts can be added only to a hold that does not have an organizational unit set. If you try to add an account to an organizational unit-based hold, an error is returned.\n\n### HTTP request\n\n`POST https://vault.googleapis.com/v1/matters/{matterId}/holds/{holdId}/accounts`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|------------|-------------------------|\n| `matterId` | `string` The matter ID. |\n| `holdId` | `string` The hold ID. |\n\n### Request body\n\nThe request body contains an instance of [HeldAccount](/workspace/vault/reference/rest/v1/matters.holds.accounts#HeldAccount).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [HeldAccount](/workspace/vault/reference/rest/v1/matters.holds.accounts#HeldAccount).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/ediscovery`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]