Setting Up Use From a Mobile Device > File Management > View the version history for a file
View the version history for a file
Show the version history for a file. For example, show all the changes to the file “IMG_0002.PNG” under “My Files”.
API
ServicesPortal/api
URI
http://portal_url/ServicesPortal/api where portal_url is the URL of the team portal.
HTTP Method
POST
Request Content-Type
application/xml
Request body example
<obj >
  <att id="name">
    <val>listVersions</val>
  </att>
  <att id="param">
    <val>source_file_path_&_name</val>
  </att>
</obj>
Expected Response status
200 OK
The request body:
param – Mandatory: The path and name of the file. For example, /ServicesPortal/webdav/myfiles/New/IMG_0002.PNG
Response body
Example JSON type response.
[{"$class":"VersionsResp",
  "current": true,
  "deleted": false,
  "fullUrl": "\/ServicesPortal\/webdav\/myfiles\/\/IMG_0002.PNG",
  "getcontentlength": 130661,
  "lastActionBy": {
    "$class":"ResourceRevision",
    "action": "Create",
    "user": "admin admin"
  },
  "modifier": "admin admin",
  "restorable": false,
  "snapshotUrl": "\/ServicesPortal\/webdav\/myfiles",
  "timestamp": "2016-06-19T17:35:43",
  "fileRelativeTime": "1466346943000",
  "snapshotTime": "1467206304000"
}]