POST api/2.0/files/{folderId}/insert This function requires authentication

Description

Inserts a file specified in the request to the selected folder by single file uploading.

Parameters
Name Description Type Example
folderId
sent in body
Folder ID number 1234
File
sent in body
File Microsoft.AspNetCore.Http.IFormFile
Title
sent in body
File name string some text
CreateNewIfExist
sent in body
Specifies whether to create a new file if it already exists or not Bool value true
KeepConvertStatus
sent in body
Specifies whether to keep the file converting status or not Bool value true
Stream
sent in body
Request input stream A stream for uploading files without multipart request N/A
Example
POST api/2.0/files/{folderid}/insert
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "folderId": 1234,
  "Title": "some text",
  "KeepConvertStatus": true,
  "Stream": "N/A"
}
Returns

Inserted file informationy

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