Search for Documents


post https://api.trivi.com/v2/search/documents

Body
DocumentSearch
filters
Array of Object   optional
page
integer   optional
pageSize
integer   optional
Default 10 Minimum 10 Maximum 100
searchText
string   optional
sortingField
string   optional
sortingDirection
string   optional

ASC or DESC, default is DESC

filters
field
string   optional
value
object   optional

If valueFrom or valueTo is filled, this must be empty

valueFrom
object   optional
valueTo
object   optional
valueContains
Array of Object   optional
DocumentsSearchResult
documentItems
Array of DocumentItem   optional
pagesCount
integer   optional
currentPage
integer   optional
pageSize
number   optional
currentDocumentItem
DocumentItem   optional
parentDocumentInfo
DocumentDescriptor   optional
DocumentDescriptor
uniqueId
string   optional

Only in GET UUID

name
string   optional
parentDocumentInfo
DocumentDescriptor   optional
isReadOnly
boolean   optional

If null, the DocumentDescriptor inherits settings from parent DocumentDescriptor.

DocumentItem
uniqueId
string   optional

Only in GET UUID

fileId
integer   optional

Only in GET

Format int64
name
string   optional
size
integer   optional

Only in GET

In bytes

note
string   optional
parentUniqueId
string   optional

Only in GET UUID

Parent folder ID. If empty, the document is in the root.

itemType
number   optional

0 - File, 1 - Folder

folderType
number   optional

0 - Generic

children
Array of DocumentItem   optional

Only in GET

isReadOnly
boolean   optional

Only in GET

If null, the DocumentItem inherits settings from parent DocumentItem.

canBeChanged
boolean   optional

Only in GET

Based on current user permissions.

canChildrenBeCreated
boolean   optional

Only in GET

Based on current user permissions.

ValidationError
code
string   optional
message
string   optional
params
object   optional
fieldsAffected
Array of ValidationFieldError   optional
ValidationFieldError
name
string   optional
message
string   optional
code
string   optional
params
object   optional