Apex
...
Types
Input & Output Types

Types.PermissionInput

Represents input for updating permission for a resource(file/folder) using Update Permissions function. Following constructors are supported.

Apex


Class params/properties:

  1. action - One of grant of revoke
  2. role - One of read of write
  3. resourceId - You can get this value from Content Library. This is a Id of the file/folder
  4. resourceType - One of file of folder .You can get this value from Content Library.
  5. driveId - This is Id of the drive
  6. emails - Email IDs for which you want to provide/revoke access.
  7. resourceIds - List of resourceId