GET/users/{userId}/drive/link-setting
내 드라이브의 링크 생성 시 필요한 링크 설정값을 조회한다.
OAuth 2.0 인증.
자세한 인증 방식은 인가·인증을 참고한다.
file
file.read
| Parameter | Type | Description |
|---|---|---|
| userId | string | 사용자 ID
required example : me |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
OK
| Property | Type | Description |
|---|---|---|
| enabledOrganizationAccessType | boolean | 접근 타입이 ORGANIZATION인 링크 생성 가능 여부 |
| enabledSpecificPeopleAccessType | boolean | 접근 타입이 SPECIFIC_PEOPLE인 링크 생성 가능 여부 |
| enabledAnyoneAccessType | boolean | 접근 타입이 ANYONE인 링크 생성 가능 여부 |
| maxLinkRetentionDays | integer | 링크 최대 유효 일수. 링크 생성, 수정 시 expirationTime값은 maxLinkRetentionDays값 이하로만 지정할 수 있다.
Allowed values : -1, 7, 30, 90, 180 |
example
1{2 "enabledOrganizationAccessType": true,3 "enabledSpecificPeopleAccessType": true,4 "enabledAnyoneAccessType": false,5 "maxLinkRetentionDays": 306}