POST/groups/{groupId}/folder/files/{fileId}/link
조직/그룹 폴더의 파일 링크를 생성한다.
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 |
|---|---|---|
| accessType | string | 링크 접근 타입
required Allowed values : ORGANIZATION, SPECIFIC_PEOPLE, ANYONE |
| linkPermissionType | string | 링크 권한 타입(해당 링크에 접속하는 피공유자는 설정된 타입에 해당되는 과업만 수행할 수 있다.)
required Allowed values : EDIT, UPLOAD_DOWNLOAD, UPLOAD, DOWNLOAD, PREVIEW |
| expirationTime | string | 링크 만료 시간(만료일이 없는 경우 null 전달, ISO-8601 형식: YYYY-MM-DDThh:mm:ssTZD) |
| password | string | 링크 비밀번호(접근 타입이 ANYONE일 때만 설정 가능)
|
| specificPeople | array (string) | 접근 타입이 SPECIFIC_PEOPLE일 때 구성원 목록 |
example
1{2 "accessType": "ANYONE",3 "linkPermissionType": "EDIT",4 "expirationTime": "2020-12-16T19:40:15.15+09:00",5 "password": "12345678"6}OK
| Property | Type | Description |
|---|---|---|
| accessType | string | 링크 접근 타입
Allowed values : ORGANIZATION, SPECIFIC_PEOPLE, ANYONE |
| hasPassword | boolean | 링크 접근 비밀번호 존재 여부 |
| linkPermissionType | string | 링크 권한 타입(해당 링크에 접속하는 피공유자는 설정된 타입에 해당되는 과업만 수행할 수 있다.)
Allowed values : EDIT, UPLOAD_DOWNLOAD, UPLOAD, DOWNLOAD, PREVIEW |
| linkUrl | string | 링크 접속 URL readOnly : true |
| createdTime | string | 링크 생성 시간 readOnly : true |
| expirationTime | string | 링크 만료 시간(만료일이 없는 경우 null) nullable : true |
| specificPeople | array (string) | 접근 타입이 SPECIFIC_PEOPLE일 때 구성원 목록 nullable : true |
example
1{2 "accessType": "SPECIFIC_PEOPLE",3 "hasPassword": false,4 "linkUrl": "https://works.do/xzO8Bv",5 "createdTime": "2024-10-10T09:18:24+09:00",6 "expirationTime": "2024-10-17T09:18:24+09:00",7 "linkPermissionType": "EDIT",8 "specificPeople": [9 "abc@example.com"10 ]11}