LowCodeAPI
  • Permissions(5)
    • POST
      Creates a permission for a file or shared drive.
    • GET
      Lists a file's or shared drive's permissions.
    • DEL
      Deletes a permission.
    • GET
      Gets a permission by ID.
    • PATCH
      Updates a permission with patch semantics.
POST
GET
DELETE
GET
PATCH
POST
https://api.lowcodeapi.com/googledrive/drive/v3/files/file_id/permissions
Path Parameters 1
file_id*string

The path parameters will be sent as a URL query parameters as a part of the request.

Query Parameters 6
emailMessagestring
moveToNewOwnersRoot boolean
TRUE
FALSE
sendNotificationEmail boolean
TRUE
FALSE
supportsAllDrives boolean
TRUE
FALSE
transferOwnership boolean
TRUE
FALSE
useDomainAdminAccess boolean
TRUE
FALSE

The query parameters will be sent as a URL query parameters as a part of the request.

Request Payload

The payload will be sent as a application/json as a part of the request body.

Path Parameters
file_id*string
The ID of the file or shared drive
Query Parameters
emailMessagestring
A plain text custom message to include in the notification email
moveToNewOwnersRootboolean
This parameter will only take effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item
sendNotificationEmailboolean
Whether to send a notification email when sharing to users or groups
supportsAllDrivesboolean
Whether the requesting application supports both My Drives and shared drives
transferOwnershipboolean
Whether to transfer ownership to the specified user and downgrade the current owner to a writer
useDomainAdminAccessboolean
Issue the request as a domain administrator; if set to true then the requester will be granted access if the file ID parameter refers to a shared drive and the requester is an administrator of the domain to which the shared drive belongs
Payload
typestring*
The type of the grantee. Valid values are: user, group, domain, anyone.
rolestring*
The role granted by this permission. Valid values are: owner, organizer, fileOrganizer, writer, commenter, reader.
emailAddressstring
The email address of the user or group to which this permission refers. Required if type is user or group.
domainstring
The domain to which this permission refers. Required if type is domain.
allowFileDiscoveryboolean
Whether the permission allows the file to be discovered through search. Only applicable for type domain or anyone.
expirationTimestring
The time at which this permission will expire (RFC 3339 date-time). Only settable on user and group permissions. Must be in the future and not more than a year in the future.
Response
API response data will be shown here once the request is completed.
Google Drive