Get Started
API backend
API system
More information

GET api/2.0/files/file/{fileId}/history This function requires authentication

Description

Returns the detailed information about all the available file versions with the ID specified in the request.

Parameters
Name Description Type Example
fileId
sent in url
File ID `0
Example
GET api/2.0/files/file/{fileid}/history
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
Returns

Information about file versions: folder ID, version, version group, content length, pure content length, file status, URL to view a file, web URL, file type, file extension, comment, encrypted or not, thumbnail URL, thumbnail status, locked or not, user ID who locked a file, denies file downloading or not, denies file sharing or not, file accessibility

Example Response

application/json

{
  "status": 0,
  "response": [
    {
      "FolderId": 1234,
      "Version": 1234,
      "VersionGroup": 1234,
      "ContentLength": "some text",
      "Mute": true,
      "ViewUrl": "some text",
      "WebUrl": "some text",
      "FileExst": "some text",
      "Comment": "some text",
      "ThumbnailUrl": "some text",
      "LockedBy": "some text",
      "DenyDownload": true,
      "DenySharing": true
    }
  ]
}

text/xml

<result>
  <status>0</status>
  <response>
    <FolderId>1234</FolderId>
    <Version>1234</Version>
    <VersionGroup>1234</VersionGroup>
    <ContentLength>some text</ContentLength>
    <Mute>True</Mute>
    <ViewUrl>some text</ViewUrl>
    <WebUrl>some text</WebUrl>
    <FileExst>some text</FileExst>
    <Comment>some text</Comment>
    <ThumbnailUrl>some text</ThumbnailUrl>
    <LockedBy>some text</LockedBy>
    <DenyDownload>True</DenyDownload>
    <DenySharing>True</DenySharing>
  </response>
</result>