Get Started
Usage API
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 string some text
title
sent in body
Folder title string some text
Example
POST api/2.0/files/folder/some+text
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "title": "some text"
}
Returns

New folder contents

Example Response

application/json

{
  "status": 0,
  "response": {
    "parentId": 1458807663,
    "filesCount": 1458807663,
    "foldersCount": 1458807663,
    "id": 1458807663,
    "title": "Some titile",
    "access": 1,
    "shared": false,
    "rootFolderType": 2,
    "updatedBy": {
      "id": "00000000-0000-0000-0000-000000000000",
      "displayName": "Mike Zanyatski",
      "title": "Manager",
      "avatarSmall": "url to small avatar",
      "profileUrl": ""
    },
    "created": "2021-12-02T05:36:20.5185137Z",
    "createdBy": {
      "id": "00000000-0000-0000-0000-000000000000",
      "displayName": "Mike Zanyatski",
      "title": "Manager",
      "avatarSmall": "url to small avatar",
      "profileUrl": ""
    },
    "updated": "2021-12-02T05:36:20.5185137Z"
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <parentId>1458807663</parentId>
    <filesCount>1458807663</filesCount>
    <foldersCount>1458807663</foldersCount>
    <id>1458807663</id>
    <title>Some titile</title>
    <access>1</access>
    <shared>false</shared>
    <rootFolderType>2</rootFolderType>
    <updatedBy>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </updatedBy>
    <created>2021-12-02T05:36:20.5185137Z</created>
    <createdBy>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </createdBy>
    <updated>2021-12-02T05:36:20.5185137Z</updated>
  </response>
</result>