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

Description

Updates the information of the selected file with the parameters specified in the request.

Parameters
Name Description Type Example
fileId
sent in url
File ID number 1234
Title
sent in body
File title string some text
LastVersion
sent in body
Number of the latest file version number 1234
Example
PUT api/2.0/files/file/1234
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "Title": "some text",
  "LastVersion": 1234
}
Returns

Updated file information

Example Response
{
  "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
  }
}