GET api/2.0/files/@root
Returns all the sections matching the parameters specified in the request.
Name |
Description |
Type |
Example |
userIdOrGroupId
sent in body
|
User or group ID
optional
|
guid
|
9924256A-739C-462b-AF15-E652A3B1B6EB
|
filterType
sent in body
|
Filter type
optional
|
None, FilesOnly, FoldersOnly, DocumentsOnly, PresentationsOnly, SpreadsheetsOnly, ImagesOnly, ByUser, ByDepartment, ArchiveOnly, ByExtension, MediaOnly
|
None
|
searchInContent
sent in body
|
Specifies whether to search within the section contents or not
|
Bool value
|
true
|
withSubfolders
sent in body
|
Specifies whether to return sections with or without subfolders
|
Bool value
|
true
|
withoutTrash
sent in body
|
Specifies whether to return sections with or without trash folder
|
Bool value
|
true
|
withoutAdditionalFolder
sent in body
|
Specifies whether to return sections with or without additional folders
|
Bool value
|
true
|
GET api/2.0/files/@root
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"userIdOrGroupId": "9924256A-739C-462b-AF15-E652A3B1B6EB",
"filterType": "None",
"searchInContent": true,
"withSubfolders": true,
"withoutTrash": true,
"withoutAdditionalFolder": true
}