Usuwanie co najmniej jednego uprawnienia do notatki. Określone podmioty natychmiast utracą dostęp. Uprawnień z rolą OWNER nie można usunąć. Jeśli usunięcie uprawnienia się nie powiedzie, cała prośba zostanie odrzucona i nie zostaną wprowadzone żadne zmiany. Zwraca błąd 400, jeśli w notatce nie ma określonego uprawnienia.
Żądanie HTTP
POST https://keep.googleapis.com/v1/{parent=notes/*}/permissions:batchDelete
Zasób nadrzędny udostępniony przez wszystkie uprawnienia, które mają zostać usunięte. Format: notes/{note} Jeśli to pole jest ustawione, nadrzędny element wszystkich uprawnień określonych w wiadomościach DeletePermissionRequest musi być zgodny z tym polem.
Treść żądania
Treść żądania zawiera dane o następującej strukturze:
Zapis JSON
{"names": [string]}
Pola
names[]
string
Wymagany. Nazwy uprawnień do usunięcia. Format: notes/{note}/permissions/{permission}
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi to pusty obiekt JSON.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-25 UTC."],[],[],null,["# Method: notes.permissions.batchDelete\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\nDeletes one or more permissions on the note. The specified entities will immediately lose access. A permission with the `OWNER` role can't be removed. If removing a permission fails, then the entire request fails and no changes are made. Returns a 400 bad request error if a specified permission does not exist on the note.\n\n### HTTP request\n\n`POST https://keep.googleapis.com/v1/{parent=notes/*}/permissions:batchDelete`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` The parent resource shared by all permissions being deleted. Format: `notes/{note}` If this is set, the parent of all of the permissions specified in the DeletePermissionRequest messages must match this field. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|---------------------------------|\n| ``` { \"names\": [ string ] } ``` |\n\n| Fields ||\n|-----------|------------------------------------------------------------------------------------------------------------|\n| `names[]` | `string` Required. The names of the permissions to delete. Format: `notes/{note}/permissions/{permission}` |\n\n### Response body\n\nIf successful, the response body is an empty JSON object.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/keep`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]