GET/users/{userId}/drive/files/{fileId}/share-sub-folders
フォルダ以下にある、共有したフォルダのリストを取得する。
Access Token を指定します。
指定の方法や Access Token の取得方法は 共通仕様 を参照してください。
file
file.read
| Parameter | Type | Description |
|---|---|---|
| userId | string | ユーザーを特定する ID (URL エンコードする)
required example : me |
| fileId | string | ファイル ID required example : NzExNTMwMDF8MTQ2NzA1NjAxMDAwMHxGfDA |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
OK
| Property | Type | Description |
|---|---|---|
| shareSubFolders | array (object) |
| Property | Type | Description |
|---|---|---|
| sharedFolderId | string | 共有フォルダ ID readOnly : true |
| sharedFolderName | string | 共有フォルダ名 readOnly : true |
| rootFileId | string | ルートフォルダのファイル ID readOnly : true |
example
1{2 "shareSubFolders": [3 {4 "sharedFolderId": "MzAyNjY0OTNfRF8yMjcxMTQxNDYzMDUy",5 "sharedFolderName": "name",6 "rootFileId": "MzAyNjY0OTN8MjI3MTE0MTQ2MzA1MnxEfDA"7 }8 ]9}Invalid parameters received.
Resource does not exist.