Deletes 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.
HTTP request
POST https://keep.googleapis.com/v1/{parent=notes/*}/permissions:batchDelete
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.
Request body
The request body contains data with the following structure:
JSON representation
{"names": [string]}
Fields
names[]
string
Required. The names of the permissions to delete. Format: notes/{note}/permissions/{permission}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-04 UTC."],[[["This operation allows the deletion of one or more permissions on a note, removing access for the specified entities."],["The request must be sent as a POST request to the specified URL, including the note ID in the path parameter."],["The request body requires a JSON object with an array of permission names to be deleted, formatted as 'notes/{note}/permissions/{permission}'."],["Upon success, the response body will be empty, indicating the permissions have been removed."],["This operation requires authorization with the 'https://www.googleapis.com/auth/keep' scope."]]],[]]