Get Started
Portal api methods
Help

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

Description

Renames the selected folder to the new title specified in the request

Parameters
Name Description Type Example
folderId
sent in url
Folder ID string some text
title
sent in body
New title string some text
Example
PUT api/2.0/files/folder/some+text
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "title": "some text"
}
Returns

Folder contents

Example Response

application/json

{
  "status": 0,
  "response": {
    "parentId": 1385835121,
    "filesCount": 1385835121,
    "foldersCount": 1385835121,
    "id": 1385835121,
    "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-10-15T09:54:28.6547932Z",
    "createdBy": {
      "id": "00000000-0000-0000-0000-000000000000",
      "displayName": "Mike Zanyatski",
      "title": "Manager",
      "avatarSmall": "url to small avatar",
      "profileUrl": ""
    },
    "updated": "2019-10-15T09:54:28.6547932Z",
    "providerItem": false
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <parentId>1385835121</parentId>
    <filesCount>1385835121</filesCount>
    <foldersCount>1385835121</foldersCount>
    <id>1385835121</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-10-15T09:54:28.6547932Z</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-10-15T09:54:28.6547932Z</updated>
    <providerItem>false</providerItem>
  </response>
</result>