POST/users/{userId}/drive/files/{fileId}/lock
내 드라이브의 파일을 잠근다.
OAuth 2.0 인증.
자세한 인증 방식은 인가·인증을 참고한다.
file
| Parameter | Type | Description |
|---|---|---|
| userId | string | 사용자 ID
required example : me |
| fileId | string | 파일 ID required example : NzExNTMwMDF8MTQ2NzA1NjAxMDAwMHxGfDA |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
OK
| Property | Type | Description |
|---|---|---|
| accessedTime | string | 접근 날짜 readOnly : true |
| createdTime | string | 생성 날짜 readOnly : true |
| modifiedTime | string | 수정 날짜 readOnly : true |
| fileId | string | 파일 ID readOnly : true |
| parentFileId | string | 부모 폴더의 fileId readOnly : true |
| fileName | string | 파일 이름 readOnly : true |
| fileSize | integer | 파일 크기 format : int64 readOnly : true |
| filePath | string | 파일 경로 readOnly : true |
| fileType | string | 파일 유형
Allowed values : AUDIO, DOC, ETC, EXE, FOLDER, IMAGE, VIDEO, ZIP |
| hasPermission | boolean | 특정 구성원에게 권한이 부여되었는지 여부 readOnly : true nullable : false |
| permissionRootFileId | string | 폴더 접근 권한이 설정된 폴더의 파일 ID. readOnly : true nullable : true |
| shared | boolean | 해당 폴더 혹은 상위 폴더가 현재 공유 중인지 여부 readOnly : true nullable : false |
| shareRootFileId | string | 해당 폴더 혹은 상위 폴더가 공유 중인 경우, 공유된 루트 폴더의 파일 ID. readOnly : true nullable : true |
| resourceLocation | integer | 리소스 위치 코드 format : int32 readOnly : true |
| statuses | array (FileStatus) | 파일 상태 |
| Property | Type | Description |
|---|---|---|
| FileStatus | string | 파일 상태
Allowed values : LOCKED, MALWARE, PROTECTED, IN_PROGRESS |
example
1{2 "fileId": "QDIxMDAwMDAwMDAwMTcwfDExODE1MDg3MzQ0NzJ8RHww",3 "parentFileId": "QDIxMDAwMDAwMDAwMTcwfDExNzgyODY2MjgxMDR8RHww",4 "resourceLocation": 24101,5 "fileSize": 10,6 "fileName": "works.txt",7 "filePath": "/worksFolder/mobile/",8 "fileType": "DOC",9 "createdTime": "2020-11-13T18:20:05.05+09:00",10 "modifiedTime": "2021-04-05T21:14:05.05+09:00",11 "accessedTime": "2021-04-05T21:14:05.05+09:00",12 "statuses": [13 "LOCKED"14 ],15 "hasPermission": false,16 "permissionRootFileId": null,17 "shared": false,18 "shareRootFileId": null19}