Files Endpoint

GET /files/{id}

#!/bin/sh # script to get token AccessToken=$(curl -X POST -d "client_id={clientId}&client_secret={clientSecret}&username={userName}&password={password}&grant_type=password" \ | python -c 'import sys, json; print json.load(sys.stdin)["access_token"]') # script to download a file by document revision id using access token as a variable AccessToken curl -X GET \ -o "/pathToFile/fileName.fileType" -H "Content-Type: application/json" \ -H "Authorization: Bearer $AccessToken" \{customerAlias}/{databaseAlias}/files/{id}
  "meta": {
    "no result returned": "check file path for file download"
Downloads a file by Document Revision Id. Where the -o is, place the file path, and file name you want to save as.
Key Type Description
clientId guid Client Id from Visual Vault
clientSecret guid Client Secret from Visual Vault
customerAlias string The alias of the customer you want to connect to
databaseAlias string The alias of the database of the customer you want to connect to
id guid Document Revision Id
password string Password from Visual Vault
userName string User Name from Visual Vault

POST /files

To upload a revision of a file, please see the php section.