Get Started
API backend
API system
More information

GET api/2.0/files/file/{fileId}/edit/diff

Description

Returns a URL to the changes of a file version specified in the request.

Parameters
Name Description Type Example
fileId
sent in url
File ID `0
version
sent in body
File version number 1234
doc
sent in body
Shared token string some text
Example
GET api/2.0/files/file/{fileid}/edit/diff
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "version": 1234,
  "doc": "some text"
}
Returns

File version history data

Example Response

application/json

{
  "status": 0,
  "response": {
    "ChangesUrl": "some text",
    "Key": "some text",
    "Token": "some text",
    "Url": "some text",
    "Version": 1234,
    "FileType": "some text"
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <ChangesUrl>some text</ChangesUrl>
    <Key>some text</Key>
    <Token>some text</Token>
    <Url>some text</Url>
    <Version>1234</Version>
    <FileType>some text</FileType>
  </response>
</result>