Get Started
Usage API
More information

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

Description

Renames the selected folder with a 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": 311186532,
    "filesCount": 311186532,
    "foldersCount": 311186532,
    "id": 311186532,
    "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-11-26T04:36:28.8480418Z",
    "createdBy": {
      "id": "00000000-0000-0000-0000-000000000000",
      "displayName": "Mike Zanyatski",
      "title": "Manager",
      "avatarSmall": "url to small avatar",
      "profileUrl": ""
    },
    "updated": "2021-11-26T04:36:28.8480418Z"
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <parentId>311186532</parentId>
    <filesCount>311186532</filesCount>
    <foldersCount>311186532</foldersCount>
    <id>311186532</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-11-26T04:36:28.8480418Z</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-11-26T04:36:28.8480418Z</updated>
  </response>
</result>