POST/groups/{groupId}/folder/files/{fileId}/permissions
조직/그룹 폴더의 폴더 접근 권한을 생성한다.
OAuth 2.0 인증.
자세한 인증 방식은 인가·인증을 참고한다.
file
group.folder
| Parameter | Type | Description |
|---|---|---|
| groupId | string | 조직/그룹 ID required example : group127-8545-4463-603b-04d550d23bf |
| fileId | string | 파일 ID required example : NzExNTMwMDF8MTQ2NzA1NjAxMDAwMHxGfDA |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
| Content-Type | string | application/json required example : application/json |
| Property | Type | Description |
|---|---|---|
| userId | string | 사용자 ID
required minLength : 1 |
| type | string | 편집 권한
required Allowed values : READ, WRITE |
example
1{2 "userId": "user1@example.com",3 "type": "WRITE"4}OK
| Property | Type | Description |
|---|---|---|
| permissions | array (FolderPermission) | 권한 정보 |
| Property | Type | Description |
|---|---|---|
| permissionId | string | 권한 ID required minLength : 1 readOnly : true |
| type | string | 편집 권한
required Allowed values : READ, WRITE |
| userId | string | 사용자 ID required minLength : 1 readOnly : true |
| userType | string | 사용자 유형
required Allowed values : USER, ORGUNIT, GROUP |
| userName | string | 사용자 이름 required minLength : 1 readOnly : true |
example
1{2 "permissions": [3 {4 "permissionId": "QDIxMDAwMDAwMDAwMTcwfEdST1VQfDEwMTAwMDAwMDExNDY1MA",5 "type": "WRITE",6 "userId": "group127-8545-4463-603b-04d550d23bf",7 "userType": "GROUP",8 "userName": "test name"9 }10 ]11}