GET/users/{userId}/drive/files/{fileId}/share-sub-folders

Gets a list of collaborative subfolders.

Authorization

oauth2

OAuth 2.0 authentication.
For more information, see Authentication and Authorization.

Scope

file
file.read

HTTP Request

GEThttps://www.worksapis.com/v1.0/users/{userId}/drive/files/{fileId}/share-sub-folders

Path Parameters

ParameterTypeDescription
userId string 

User ID

  • Mail
  • Resource ID
  • External key in "externalKey:{externalKey}" format
  • me

required
example : me 
fileId string 

File ID


required
example : NzExNTMwMDF8MTQ2NzA1NjAxMDAwMHxGfDA 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Response

HTTP 200

OK

PropertyTypeDescription
shareSubFolders array (object) 
 

object

PropertyTypeDescription
sharedFolderId string 

Shared folder ID


readOnly : true 
sharedFolderName string 

Shared folder name


readOnly : true 
rootFileId string 

Root file ID


readOnly : true 

Response Example

example

1{2  "shareSubFolders": [3    {4      "sharedFolderId": "MzAyNjY0OTNfRF8yMjcxMTQxNDYzMDUy",5      "sharedFolderName": "name",6      "rootFileId": "MzAyNjY0OTN8MjI3MTE0MTQ2MzA1MnxEfDA"7    }8  ]9}

HTTP 400

Invalid parameters received.

HTTP 404

Resource does not exist.