POST api/2.0/files/@my/insert This function requires authentication

Description

Inserts a file specified in the request to the "My documents" section by single file uploading.

Parameters
Name Description Type Example
File
sent in body
File Microsoft.AspNetCore.Http.IFormFile
Title
sent in body
File name System.String
CreateNewIfExist
sent in body
Specifies whether to create a new file if it already exists or not System.Nullable{System.Boolean}
KeepConvertStatus
sent in body
Specifies whether to keep the file converting status or not System.Boolean
Stream
sent in body
Request input stream System.IO.Stream
Example
POST api/2.0/files/@my/insert
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

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

Inserted file

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