PUT restapi/personal/yourfiles/private/files/{fileId}/v1?newName={newName}

Renames a file in your private files

Request Information

URI Parameters

NameDescriptionTypeAdditional information
fileId

integer

Required

newName

string

Required

Body Parameters

None.

Response Information

Resource Description

Itslearning.RestApi.Entities.YourFiles.PrivateFileModel
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.

Response Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "LastModified": "2025-06-18T13:54:23Z",
  "LastModifiedString": "sample string 3",
  "FileType": "sample string 4",
  "FileSize": 5,
  "FileId": 6,
  "FileRepoId": "c799380d-b931-4b26-9444-7b749b404501",
  "IsFolder": true,
  "VirtualPath": "sample string 9",
  "Icon": "sample string 10"
}

application/xml, text/xml

Sample:
<PrivateFileModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <FileId>6</FileId>
  <FileRepoId>c799380d-b931-4b26-9444-7b749b404501</FileRepoId>
  <FileSize>5</FileSize>
  <FileType>sample string 4</FileType>
  <Icon>sample string 10</Icon>
  <IsFolder>true</IsFolder>
  <LastModified>2025-06-18T13:54:23Z</LastModified>
  <LastModifiedString>sample string 3</LastModifiedString>
  <Name>sample string 1</Name>
  <VirtualPath>sample string 9</VirtualPath>
</PrivateFileModel>