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

공용 드라이브(공용 폴더)의 구성원 권한을 수정한다.

Authorization

oauth2

OAuth 2.0 인증.
자세한 인증 방식은 인가·인증을 참고한다.

Scope

file

HTTP Request

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

Path Parameters

ParameterTypeDescription
sharedriveId string 

공용 드라이브 ID


required
example : @2101000000000008 
permissionId string 

권한 ID


required
example : QDIxMDAwMDAwMDAwMTcwfEdST1VQfDEwMTAwMDAwMDExNDY1MA 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Request Body

PropertyTypeDescription
type string 

편집 권한

  • READ: 읽기 권한
  • WRITE: 쓰기 권한

Allowed values : READ, WRITE 

Request Example

example

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

Response

HTTP 200

OK

PropertyTypeDescription
permissionId string 

권한 ID


required
minLength : 1
readOnly : true 
type string 

편집 권한

  • READ: 읽기 권한
  • WRITE: 쓰기 권한

required
Allowed values : READ, WRITE 
userId string 

사용자 ID


required
minLength : 1
readOnly : true 
userType string 

사용자 유형

  • USER: 사용자
  • ORGUNIT: 조직
  • GROUP: 그룹

required
Allowed values : USER, ORGUNIT, GROUP 
userName string 

사용자 이름


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