Change metadata for document or folder


put https://api.trivi.com/v2/documents/{documentItemUniqueId}

File data cannot be changed.

Path Variables
documentItemUniqueId
string   required

GUID

Body
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.

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
Object