Method: grants.patch
Zmienia dostęp użytkownika do danego pakietu.
Żądanie HTTP
PATCH https://androidpublisher.googleapis.com/androidpublisher/v3/{grant.name=developers/*/users/*/grants/*}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
grant.name |
string
Wymagane. Nazwa zasobu dla tego grantu, zgodna ze wzorcem „developers/{developer}/users/{email}/grants/{packageName}”. Jeśli ten grant dotyczy wersji roboczej aplikacji, w nazwie tego zasobu zamiast nazwy pakietu zostanie użyty identyfikator aplikacji.
|
Parametry zapytania
Parametry |
updateMask |
string (FieldMask format)
Opcjonalnie: Lista pól do zaktualizowania. Jest to lista pełnych nazw pól rozdzielona przecinkami. Przykład: "user.displayName,photo" .
|
Treść żądania
Treść żądania zawiera wystąpienie elementu Grant
.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu Grant
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/androidpublisher
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: 2024-12-17 UTC.
[null,null,["Ostatnia aktualizacja: 2024-12-17 UTC."],[[["Updates a user's access to a specific package within the Google Play Developer API."],["The request must specify the grant resource name using a specific pattern, which includes the developer ID, user email, and package name or app ID for draft apps."],["Optionally, a field mask can be provided to specify which fields of the grant should be updated."],["The request and response bodies both utilize the `Grant` object to represent the user's access permissions."],["Authorization requires the `https://www.googleapis.com/auth/androidpublisher` OAuth scope."]]],["The content describes how to update user access to a package via a `PATCH` HTTP request. The request URL structure follows gRPC Transcoding syntax and requires a `grant.name` path parameter representing the resource. An optional `updateMask` query parameter specifies fields to update. The request body must contain a `Grant` instance, and the successful response also returns a `Grant` instance. Authorization requires the `androidpublisher` OAuth scope.\n"]]