Method: matters.addPermissions
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 OAuth 2.0 Overview.
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-02-27 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-02-27 UTC."],[[["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"]]