PATCH/sharedrives/{sharedriveId}/permissions/{permissionId}

Updates a member permission for a collaborative drive.

Authorization

oauth2

OAuth 2.0 authentication.
For more information, see Authentication and Authorization.

Scope

file

HTTP Request

PATCHhttps://www.worksapis.com/v1.0/sharedrives/{sharedriveId}/permissions/{permissionId}

Path Parameters

ParameterTypeDescription
sharedriveId string 

Collaborative drive ID


required
example : @2101000000000008 
permissionId string 

Permission ID


required
example : QDIxMDAwMDAwMDAwMTcwfEdST1VQfDEwMTAwMDAwMDExNDY1MA 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Request Body

PropertyTypeDescription
type string 

Permission type

  • READ: Read permission
  • WRITE: Write permission

Allowed values : READ, WRITE 

Request Example

example

1{2  "type": "WRITE"3}

Response

HTTP 200

OK

PropertyTypeDescription
permissionId string 

Permission ID


required
minLength : 1
readOnly : true 
type string 

Permission type

  • READ: Read permission
  • WRITE: Write permission

required
Allowed values : READ, WRITE 
userId string 

User ID


required
minLength : 1
readOnly : true 
userType string 

User type

  • USER: User
  • ORGUNIT: Team
  • GROUP: Group

required
Allowed values : USER, ORGUNIT, GROUP 
userName string 

User name


required
minLength : 1
readOnly : true 

Response Example

example

1{2  "permissionId": "QDIxMDAwMDAwMDAwMTcwfEdST1VQfDEwMTAwMDAwMDExNDY1MA",3  "type": "WRITE",4  "userId": "group127-8545-4463-603b-04d550d23bf",5  "userType": "GROUP",6  "userName": "test name"7}

HTTP 403

Forbidden