Files


 GET   /files


Download a file using a document search query.

Query Parameters
ParameterTypeDescription
sortStringThe name of a data column to sort by.
sortDirStringSort direction.
  • asc: Ascending order
  • desc: Descending order
qStringA VisualVault REST API Data Query.
Response Codes
CodeDescription
400Bad Request


 GET   /files/{id}


Download a file by document ID.

Route Parameters
ParameterTypeDescription
id*GuidThe document id.


 POST   /files


Upload a file revision from form data.

Body Parameters
ParameterTypeDescription
checkInBoolCheck in status of the document.
checkInDocumentState*StringDocument status.
  • Unreleased (0)
  • Released (1)
  • Pending (2)
revision*StringDocument revision number.
fileNameStringThe name of the file.
changeReason*StringReason for the change.
indexFieldsStringIndex field names and values as a JSON array or object string.
parameters{FileParameter}Optional parameters.
fileId*GuidThe ID of the file.
documentId*GuidThe ID of the document.
Response Codes
CodeDescription
400Bad Request


 POST   /files/file


Upload a file.

Body Parameters
ParameterTypeDescription
allowNoFileBoolAllows a document to be created with no attached file (or a file containing 0 bytes).
checkInStringCheck in status.
  • CheckedIn (0)
  • CheckedOut (1)
checkInDocumentStateStringDocument status.
  • Unreleased (0)
  • Released (1)
  • Pending (2)
fileLengthStringSize of the file (in bytes).
fileNameStringThe name of the file.
revisionStringDocument revision number.
changeReasonStringReason for the change.
fileIdGuidThe ID of the file.
documentId*GuidThe ID of the document.
indexFields{IndexField}Index field names and values as a JSON array or object string.
Response Codes
CodeDescription
400Bad Request