POST api/2.0/files/file/referencedata This function requires authentication

Description

Returns the reference data to uniquely identify a file in its system and check the availability of insering data into the destination spreadsheet by the external link.

Parameters
Name Description Type Example
FileKey
sent in body
The unique document identifier used by the service to get a link to the file number 1234
InstanceId
sent in body
The unique system identifier string some text
SourceFileId
sent in body
Source file ID number 1234
Path
sent in body
The file name or relative path for the formula editor string some text
Example
POST api/2.0/files/file/referencedata
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "FileKey": 1234,
  "InstanceId": "some text",
  "SourceFileId": 1234,
  "Path": "some text"
}
Returns

File reference data

Example Response
{
  "status": 0,
  "response": {
    "ReferenceData": {
      "FileKey": 1234,
      "InstanceId": "some text"
    },
    "Error": "some text",
    "Path": "some text",
    "Url": "some text",
    "FileType": "some text",
    "Key": "some text",
    "Link": "some text",
    "Token": "some text"
  }
}