PATCH /files/{fileId}/permissions/{permissionId}
Changed onUpdates a permission with patch semantics. For more information, see Share files, folders, and drives. Warning: Concurrent permission modifications (such as update or delete) on the same file, folder, or shared drive aren't supported across any users or clients; only the last update is applied.
Request
- Base URLhttps://www.googleapis.com/drive/v3
- Auth
- OAuth 2 and OAuth 2Implicithttps://accounts.google.com/o/oauth2/authScopeshttps://www.googleapis.com/auth/driveAuthorization codehttps://accounts.google.com/o/oauth2/authToken URLhttps://accounts.google.com/o/oauth2/tokenScopeshttps://www.googleapis.com/auth/drive
- or OAuth 2 and OAuth 2Implicithttps://accounts.google.com/o/oauth2/authScopeshttps://www.googleapis.com/auth/drive.fileAuthorization codehttps://accounts.google.com/o/oauth2/authToken URLhttps://accounts.google.com/o/oauth2/tokenScopeshttps://www.googleapis.com/auth/drive.file
Path parameters
The ID of the file or shared drive.
The ID of the permission.
Query parameters
Deprecated: All requests use the expansive access rules.
Whether to remove the expiration date.
Whether the requesting application supports both My Drives and shared drives.
Deprecated: Use supportsAllDrives instead.
Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect. For more information, see Transfer file ownership.
Issue the request as a domain administrator. If set to true, and if the following additional conditions are met, the requester is granted access: 1. The file ID parameter refers to a shared drive. 2. The requester is an administrator of the domain to which the shared drive belongs. For more information, see Manage shared drives as domain administrators.
Request body
Response
Successful response
Changes
- info
the security scope
https://www.googleapis.com/auth/drivewas added to the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/drivewas added to the endpoint's security schemeOauth2c - info
the security scope
https://www.googleapis.com/auth/drive.filewas removed from the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/drive.filewas removed from the endpoint's security schemeOauth2c
- info
- info
the security scope
https://www.googleapis.com/auth/drivewas added to the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/drivewas added to the endpoint's security schemeOauth2c - info
the security scope
https://www.googleapis.com/auth/drive.filewas removed from the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/drive.filewas removed from the endpoint's security schemeOauth2c
- info