GET/users/{userId}/drive/sharedfolders/{sharedFolderId}

초대받은 폴더의 정보를 조회한다.

Authorization

oauth2

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

Scope

file
file.read

HTTP Request

GEThttps://www.worksapis.com/v1.0/users/{userId}/drive/sharedfolders/{sharedFolderId}

Path Parameters

ParameterTypeDescription
userId string 

사용자 ID

  • 메일
  • 리소스 ID
  • 외부 키 "externalKey:{externalKey}" 형태
  • me

required
example : me 
sharedFolderId string 

초대받은 폴더 ID


required
example : MTIzNDVfRF8xMjM0NQ 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Response

HTTP 200

OK

PropertyTypeDescription
sharedFolderId string 

초대받은 폴더 ID


readOnly : true 
sharedFolderName string 

초대받은 폴더 이름


readOnly : true 
ownerId string 

소유자 ID


readOnly : true 
ownerName string 

소유자 이름


readOnly : true 
rootFileId string 

루트 파일 ID


readOnly : true 
createdTime string 

생성 시간


format : date-time
readOnly : true 
modifiedTime string 

수정 시간


format : date-time
readOnly : true 
resourceLocation integer 

리소스 위치 코드


format : int32
readOnly : true 
permissionType string 

편집 권한

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

Allowed values : READ, WRITE 
useRevision boolean 

버전 사용 여부


readOnly : true 
protected boolean 

중요 표시 여부


readOnly : true 

Response Example

example

1{2  "sharedFolderId": "NTgwOTAwNF9EXzkzODkyODU2MjQzNg",3  "sharedFolderName": "share",4  "ownerId": "userf7da-f82c-4284-13e7-030f3b4c756x",5  "ownerName": "ownerName",6  "rootFileId": "NTgwOTAwNHw5Mzg5Mjg1NjI0MzZ8RHwxNzQ",7  "createdTime": "2023-07-06T16:27:28+09:00",8  "modifiedTime": "2023-07-06T16:27:28+09:00",9  "resourceLocation": 11551,10  "permissionType": "WRITE",11  "useRevision": true,12  "protected": false13}

HTTP 403

Access is denied: no permission.

HTTP 404

Shared folder or permission does not exist.