Creates a text (.txt) file in the selected folder with the title and contents specified in the request.
Name | Description | Type | Example |
folderId
sent in url
|
Folder ID | number | 1234 |
Title
sent in body
|
File title | string | some text |
Content
sent in body
|
File contents | string | some text |
POST api/2.0/files/1234/text Host: yourportal.onlyoffice.com Content-Type: application/json Accept: application/json { "Title": "some text", "Content": "some text" }
New file information
{ "status": 0, "response": { "FolderId": 1234, "Version": 1234, "VersionGroup": 1234, "ContentLength": "some text", "PureContentLength": 1234, "Mute": true, "ViewUrl": "some text", "WebUrl": "some text", "FileExst": "some text", "Comment": "some text", "Encrypted": true, "ThumbnailUrl": "some text", "Locked": true, "LockedBy": "some text", "DenyDownload": true, "HasDraft": true, "DenySharing": true } }