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

Description

Creates an HTML (.html) file in the "My documents" section with the title and contents specified in the request.

Parameters
Name Description Type Example
Title
sent in body
File title string some text
Content
sent in body
File contents string some text
Example
POST api/2.0/files/@my/html
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "Title": "some text",
  "Content": "some text"
}
Returns

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