PUT api/2.0/files/fileops/copy
Copies all the selected files and folders to the folder with the ID specified in the request.
Name |
Description |
Type |
Example |
DestFolderId
sent in body
|
Destination folder ID
|
System.Text.Json.JsonElement
|
|
ConflictResolveType
sent in body
|
Overwriting behavior
|
ASC.Web.Files.Services.WCFService.FileOperations.FileConflictResolveType
|
|
DeleteAfter
sent in body
|
Specifies whether to delete a folder after the editing session is finished or not
|
System.Boolean
|
|
PUT api/2.0/files/fileops/copy
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"ConflictResolveType": "Skip",
"DeleteAfter": true
}
application/json
{
"status": 0,
"response": [
{
"Id": "some text",
"Progress": 1234,
"Error": "some text",
"Processed": "some text",
"Finished": true,
"Url": "some text"
}
]
}
text/xml
<result>
<status>0</status>
<response>
<Id>some text</Id>
<Progress>1234</Progress>
<Error>some text</Error>
<Processed>some text</Processed>
<Finished>True</Finished>
<Url>some text</Url>
</response>
</result>