PUT restapi/personal/yourfiles/public/files/{fileId}/v1

Renames or/and moves a file in your public files

Request Information

URI Parameters

NameDescriptionTypeAdditional information
fileId

The file identifier

integer

Required

Body Parameters

New information about the file

Itslearning.RestApi.Entities.YourFiles.UpdateRequest
NameDescriptionTypeAdditional information
ParentFolderId

The parent folder identifier where the file or folder is located

integer

None.

Name

The new name of the file or folder to be updated

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ParentFolderId": 1,
  "Name": "sample string 2"
}

application/xml, text/xml

Sample:
<UpdateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Name>sample string 2</Name>
  <ParentFolderId>1</ParentFolderId>
</UpdateRequest>

application/x-www-form-urlencoded

Sample:
No sample available

Response Information

Resource Description

The updated file model

Itslearning.RestApi.Entities.YourFiles.FileModel
NameDescriptionTypeAdditional information
Name

The name of the file/folder

string

None.

LastModified

The date and time the file was last modified

date

None.

LastModifiedString

The date and time the file was last modified as string

string

None.

FileType

The type of file

string

None.

FileSize

The file size in Kb

integer, 64 bit

None.

FileId

The file identifier

integer

None.

FileRepoId

The file repository identifier

globally unique identifier

None.

IsFolder

If the item is folder

boolean

None.

VirtualPath

Virtual Path

string

None.

Icon

Icon for the item

string

None.

FolderId

The folder identifier

integer

None.

ParentFolderId

The parent folder identifier. If this is a root folder or IsFolder = false, then this value is null.

integer

None.

NameWithoutExtension

The name without file extension

string

None.

Extension

The file extension

string

None.

Children

The children of the FileModel if the file model is a folder

Collection of Itslearning.RestApi.Entities.YourFiles.FileModel

None.

IsEditable

If file can be edited

boolean

None.

IsViewable

Gets or sets a value indicating whether the item is viewable in the browser.

boolean

None.

FolderType

Gets or sets a value indicating whether the item is viewable in the browser.

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "LastModified": "2025-10-23T16:53:54Z",
  "LastModifiedString": "sample string 3",
  "FileType": "sample string 4",
  "FileSize": 5,
  "FileId": 6,
  "FileRepoId": "3c9c7f50-7e8c-4fda-9c5a-a2d918353f39",
  "IsFolder": true,
  "VirtualPath": "sample string 9",
  "Icon": "sample string 10",
  "FolderId": 11,
  "ParentFolderId": 1,
  "NameWithoutExtension": "sample string 12",
  "Extension": "sample string 13",
  "Children": [
    {
      "Name": "sample string 1",
      "LastModified": "2025-10-23T16:53:54Z",
      "LastModifiedString": "sample string 3",
      "FileType": "sample string 4",
      "FileSize": 5,
      "FileId": 6,
      "FileRepoId": "1d4c473c-5a3e-403d-91b8-44286fa897ac",
      "IsFolder": true,
      "VirtualPath": "sample string 9",
      "Icon": "sample string 10",
      "FolderId": 11,
      "ParentFolderId": 1,
      "NameWithoutExtension": "sample string 12",
      "Extension": "sample string 13",
      "Children": null,
      "IsEditable": true,
      "IsViewable": true,
      "FolderType": "sample string 16"
    },
    {
      "Name": "sample string 1",
      "LastModified": "2025-10-23T16:53:54Z",
      "LastModifiedString": "sample string 3",
      "FileType": "sample string 4",
      "FileSize": 5,
      "FileId": 6,
      "FileRepoId": "d8a681bd-4cb4-46b5-ae61-ab45a933bfcf",
      "IsFolder": true,
      "VirtualPath": "sample string 9",
      "Icon": "sample string 10",
      "FolderId": 11,
      "ParentFolderId": 1,
      "NameWithoutExtension": "sample string 12",
      "Extension": "sample string 13",
      "Children": null,
      "IsEditable": true,
      "IsViewable": true,
      "FolderType": "sample string 16"
    }
  ],
  "IsEditable": true,
  "IsViewable": true,
  "FolderType": "sample string 16"
}

application/xml, text/xml

Sample:
<FileModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Children>
    <FileModel>
      <Children i:nil="true" />
      <Extension>sample string 13</Extension>
      <FileId>6</FileId>
      <FileRepoId>1d4c473c-5a3e-403d-91b8-44286fa897ac</FileRepoId>
      <FileSize>5</FileSize>
      <FileType>sample string 4</FileType>
      <FolderId>11</FolderId>
      <FolderType>sample string 16</FolderType>
      <Icon>sample string 10</Icon>
      <IsEditable>true</IsEditable>
      <IsFolder>true</IsFolder>
      <IsViewable>true</IsViewable>
      <LastModified>2025-10-23T16:53:54Z</LastModified>
      <LastModifiedString>sample string 3</LastModifiedString>
      <Name>sample string 1</Name>
      <NameWithoutExtension>sample string 12</NameWithoutExtension>
      <ParentFolderId>1</ParentFolderId>
      <VirtualPath>sample string 9</VirtualPath>
    </FileModel>
    <FileModel>
      <Children i:nil="true" />
      <Extension>sample string 13</Extension>
      <FileId>6</FileId>
      <FileRepoId>d8a681bd-4cb4-46b5-ae61-ab45a933bfcf</FileRepoId>
      <FileSize>5</FileSize>
      <FileType>sample string 4</FileType>
      <FolderId>11</FolderId>
      <FolderType>sample string 16</FolderType>
      <Icon>sample string 10</Icon>
      <IsEditable>true</IsEditable>
      <IsFolder>true</IsFolder>
      <IsViewable>true</IsViewable>
      <LastModified>2025-10-23T16:53:54Z</LastModified>
      <LastModifiedString>sample string 3</LastModifiedString>
      <Name>sample string 1</Name>
      <NameWithoutExtension>sample string 12</NameWithoutExtension>
      <ParentFolderId>1</ParentFolderId>
      <VirtualPath>sample string 9</VirtualPath>
    </FileModel>
  </Children>
  <Extension>sample string 13</Extension>
  <FileId>6</FileId>
  <FileRepoId>3c9c7f50-7e8c-4fda-9c5a-a2d918353f39</FileRepoId>
  <FileSize>5</FileSize>
  <FileType>sample string 4</FileType>
  <FolderId>11</FolderId>
  <FolderType>sample string 16</FolderType>
  <Icon>sample string 10</Icon>
  <IsEditable>true</IsEditable>
  <IsFolder>true</IsFolder>
  <IsViewable>true</IsViewable>
  <LastModified>2025-10-23T16:53:54Z</LastModified>
  <LastModifiedString>sample string 3</LastModifiedString>
  <Name>sample string 1</Name>
  <NameWithoutExtension>sample string 12</NameWithoutExtension>
  <ParentFolderId>1</ParentFolderId>
  <VirtualPath>sample string 9</VirtualPath>
</FileModel>