Skip to main content

searchFolder

FolderContentWrapper searchFolder(folderId, FolderMetadataSearch)

POST /api/2.0/files/{folderId}/search

Search a folder by metadata

Searches the folder by metadata. The same filter the folder listing takes in the metadataTemplateId and metadataFilters query parameters, here as a typed request body for the clients that build the conditions as objects rather than as a JSON string.

Parameters​

NameInTypeDescriptionNotes
folderIdpathInteger (int32)The folder ID.[required] [example: 1]
FolderMetadataSearchbodyFolderMetadataSearchThe search parameters.[required]

Responses​

Status codeDescriptionTypeResponse headers
200Folder contentsFolderContentWrapperX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
400Invalid metadata filter, or a metadata filter on a section that cannot apply it--
403You don't have enough permission to view the folder content--
404The required folder was not found--
401UnauthorizedErrorApiResponse-
429Too Many Requests.ErrorApiResponseRetry-After
500Internal Server Error.ErrorApiResponse-
502Bad Gateway. Returned by the reverse proxy, response body may be HTML and not JSON.--
503Service Unavailable. Returned by the reverse proxy, response body may be HTML and not JSON.--

Return type​

FolderContentWrapper

Third-party storage​

For a file or folder in a connected third-party storage the identifier is a string such as sbox-42, and the call differs in these parts only:

NameInTypeDescriptionNotes
folderIdpathStringThe folder ID.[required] [example: sbox-42]

Return type: ThirdPartyFolderContentWrapper

Authorization​

Basic, OAuth2 (scopes: read, write), ApiKeyBearer, asc_auth_key, Bearer, OpenId

HTTP request headers​

  • Content-Type: application/json
  • Accept: application/json