Get Started
Portal api methods
Help

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

Description

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

Parameters
Name Description Type Example
folderId
sent in url
Parent folder ID string some text
title
sent in body
Title of new folder 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": 631831212,
    "filesCount": 631831212,
    "foldersCount": 631831212,
    "id": 631831212,
    "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": "2019-12-15T06:37:51.4773380Z",
    "createdBy": {
      "id": "00000000-0000-0000-0000-000000000000",
      "displayName": "Mike Zanyatski",
      "title": "Manager",
      "avatarSmall": "url to small avatar",
      "profileUrl": ""
    },
    "updated": "2019-12-15T06:37:51.4773380Z",
    "providerItem": false
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <parentId>631831212</parentId>
    <filesCount>631831212</filesCount>
    <foldersCount>631831212</foldersCount>
    <id>631831212</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>2019-12-15T06:37:51.4773380Z</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>2019-12-15T06:37:51.4773380Z</updated>
    <providerItem>false</providerItem>
  </response>
</result>