Returns all the sections matching the parameters specified in the request.
Name | Description | Type | Example |
userIdOrGroupId
sent in url
|
User or group ID
optional
|
guid | 9924256A-739C-462b-AF15-E652A3B1B6EB |
filterType
sent in url
|
Filter type
optional
|
None, FilesOnly, FoldersOnly, DocumentsOnly, PresentationsOnly, SpreadsheetsOnly, ImagesOnly, ByUser, ByDepartment, ArchiveOnly, ByExtension, MediaOnly | None |
searchInContent
sent in url
|
Specifies whether to search within the section contents or not | Bool value | true |
extension
sent in url
|
File extension by which files will be searched for if the FilterType.ByExtension parameter is passed | string | some text |
withSubfolders
sent in url
|
Specifies whether to return sections with or without subfolders | Bool value | true |
withoutTrash
sent in url
|
Specifies whether to return sections with or without trash folder | Bool value | true |
withoutAdditionalFolder
sent in url
|
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, "extension": "some text", "withSubfolders": true, "withoutTrash": true, "withoutAdditionalFolder": true }
Contents of the sections