Method: matters.addPermissions
Dodaje konto jako współpracownika sprawy.
Żądanie HTTP
POST https://vault.googleapis.com/v1/matters/{matterId}:addPermissions
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
matterId |
string
Identyfikator sprawy.
|
Treść żądania
Treść żądania zawiera dane o następującej strukturze:
Zapis JSON |
{
"matterPermission": {
object (MatterPermission )
},
"sendEmails": boolean,
"ccMe": boolean
} |
Pola |
matterPermission |
object (MatterPermission )
Konto i jego rolę do dodania.
|
sendEmails |
boolean
Aby wysłać e-maila z powiadomieniem do dodanego konta, ustaw wartość na true. Aby nie wysyłać e-maila z powiadomieniem, ustaw wartość na false.
|
ccMe |
boolean
Ma znaczenie tylko wtedy, gdy sendEmails ma wartość true. Aby dodać adresata do wiadomości e-mail, ustaw wartość true. Aby nie dodawać adresata w polu CC, ustaw wartość na false.
|
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu MatterPermission
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/ediscovery
Więcej informacji znajdziesz w OAuth 2.0 Overview.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-02-27 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]