Get Started
API backend
API system
More information

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

Description

Creates a new folder with the title specified in the request. The parent folder ID can be also specified.

Parameters
Name Description Type Example
folderId
sent in url
Parent folder ID `0
Title
sent in body
Folder title System.String
Example
POST api/2.0/files/folder/{folderid}
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "Title": "some text"
}
Returns

New folder parameters

Example Response

application/json

{
  "status": 0,
  "response": {
    "ParentId": 1234,
    "FilesCount": 1234,
    "FoldersCount": 1234,
    "New": 1234,
    "Mute": true,
    "Pinned": true,
    "Private": true
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <ParentId>1234</ParentId>
    <FilesCount>1234</FilesCount>
    <FoldersCount>1234</FoldersCount>
    <New>1234</New>
    <Mute>True</Mute>
    <Pinned>True</Pinned>
    <Private>True</Private>
  </response>
</result>