POST restapi/personal/yourfiles/public/files/v1

Copy files to a different location

Request Information

URI Parameters

None.

Body Parameters

The request with identifiers and new destination

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

The new parent folder identifier where the files or folders will be copied to

integer

None.

Ids

The list of identifiers of the files or folders to be copied

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ParentFolderId": 1,
  "Ids": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<CopyRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Ids xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </Ids>
  <ParentFolderId>1</ParentFolderId>
</CopyRequest>

application/x-www-form-urlencoded

Sample:
No sample available

Response Information

Resource Description

The file model for destination folder

Collection of 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-23T17:50:46Z",
    "LastModifiedString": "sample string 3",
    "FileType": "sample string 4",
    "FileSize": 5,
    "FileId": 6,
    "FileRepoId": "bcf9bae9-5fc9-4ea9-b87b-200f69fad420",
    "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-23T17:50:46Z",
        "LastModifiedString": "sample string 3",
        "FileType": "sample string 4",
        "FileSize": 5,
        "FileId": 6,
        "FileRepoId": "f1ac3b38-b70e-41d8-b703-6671359419f3",
        "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-23T17:50:46Z",
        "LastModifiedString": "sample string 3",
        "FileType": "sample string 4",
        "FileSize": 5,
        "FileId": 6,
        "FileRepoId": "78cbcc48-2188-44a4-a6a8-30f79c6b866d",
        "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"
  },
  {
    "Name": "sample string 1",
    "LastModified": "2025-10-23T17:50:46Z",
    "LastModifiedString": "sample string 3",
    "FileType": "sample string 4",
    "FileSize": 5,
    "FileId": 6,
    "FileRepoId": "f73e48e8-7772-4035-a73e-27352ad91c39",
    "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-23T17:50:46Z",
        "LastModifiedString": "sample string 3",
        "FileType": "sample string 4",
        "FileSize": 5,
        "FileId": 6,
        "FileRepoId": "c702d27e-3c76-4c2a-9035-91f3e38219de",
        "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-23T17:50:46Z",
        "LastModifiedString": "sample string 3",
        "FileType": "sample string 4",
        "FileSize": 5,
        "FileId": 6,
        "FileRepoId": "5259630e-68c2-41dc-865a-3072ea60b62c",
        "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:
<ArrayOfFileModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <FileModel>
    <Children>
      <FileModel>
        <Children i:nil="true" />
        <Extension>sample string 13</Extension>
        <FileId>6</FileId>
        <FileRepoId>f1ac3b38-b70e-41d8-b703-6671359419f3</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-23T17:50:46Z</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>78cbcc48-2188-44a4-a6a8-30f79c6b866d</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-23T17:50:46Z</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>bcf9bae9-5fc9-4ea9-b87b-200f69fad420</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-23T17:50:46Z</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>
      <FileModel>
        <Children i:nil="true" />
        <Extension>sample string 13</Extension>
        <FileId>6</FileId>
        <FileRepoId>c702d27e-3c76-4c2a-9035-91f3e38219de</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-23T17:50:46Z</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>5259630e-68c2-41dc-865a-3072ea60b62c</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-23T17:50:46Z</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>f73e48e8-7772-4035-a73e-27352ad91c39</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-23T17:50:46Z</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>
</ArrayOfFileModel>