Method: matters.addPermissions
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Thêm một tài khoản làm người cộng tác trong một vấn đề.
Yêu cầu HTTP
POST https://vault.googleapis.com/v1/matters/{matterId}:addPermissions
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
matterId |
string
Mã vấn đề.
|
Nội dung yêu cầu
Nội dung yêu cầu chứa dữ liệu có cấu trúc sau:
Biểu diễn dưới dạng JSON |
{
"matterPermission": {
object (MatterPermission )
},
"sendEmails": boolean,
"ccMe": boolean
} |
Trường |
matterPermission |
object (MatterPermission )
Tài khoản và vai trò của tài khoản đó cần thêm.
|
sendEmails |
boolean
Để gửi email thông báo đến tài khoản đã thêm, hãy đặt thành true. Để không gửi email thông báo, hãy đặt thành false.
|
ccMe |
boolean
Chỉ phù hợp nếu sendEmails là true. Để gửi CC cho người yêu cầu trong thư email, hãy đặt thành true. Để không CC người yêu cầu, hãy đặt thành false.
|
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một phiên bản của MatterPermission
.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/ediscovery
Để biết thêm thông tin, hãy xem Hướng dẫn uỷ quyền.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[],[],null,["# Method: matters.addPermissions\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nAdds an account as a matter collaborator.\n\n### HTTP request\n\n`POST https://vault.googleapis.com/v1/matters/{matterId}:addPermissions`\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\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"matterPermission\": { object (/workspace/vault/reference/rest/v1/matters#MatterPermission) }, \"sendEmails\": boolean, \"ccMe\": boolean } ``` |\n\n| Fields ||\n|--------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `matterPermission` | `object (`[MatterPermission](/workspace/vault/reference/rest/v1/matters#MatterPermission)`)` The account and its role to add. |\n| `sendEmails` | `boolean` To send a notification email to the added account, set to **true** . To not send a notification email, set to **false**. |\n| `ccMe` | `boolean` Only relevant if **sendEmails** is **true** . To CC the requestor in the email message, set to **true** . To not CC requestor, set to **false**. |\n\n### Response body\n\nIf successful, the response body contains an instance of [MatterPermission](/workspace/vault/reference/rest/v1/matters#MatterPermission).\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)."]]