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

Description

Saves edits to a file with the ID specified in the request.

Parameters
Name Description Type Example
fileId
sent in url
File ID number 1234
FileExtension
sent in body
File extension string some text
DownloadUri
sent in body
URI to download a file string some text
File
sent in body
Request file stream Microsoft.AspNetCore.Http.IFormFile
Doc
sent in body
Shared token string some text
Forcesave
sent in body
Specifies whether to force save a file or not Bool value true
Example
PUT api/2.0/files/file/1234/saveediting
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "FileExtension": "some text",
  "DownloadUri": "some text",
  "Doc": "some text",
  "Forcesave": true
}
Returns

Saved file parameters

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
  }
}