POST api/2.0/files/file/{fileId}/copyas
Copies (and converts if possible) an existing file to the specified folder.
Name |
Description |
Type |
Example |
fileId
sent in url
|
File ID
|
`0
|
|
POST api/2.0/files/file/{fileid}/copyas
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"inDto": null
}
Copied file entry information
application/json
{
"status": 0,
"response": {
"Title": "some text",
"Access": "ReadWrite",
"Shared": true,
"ProviderKey": "some text"
}
}
text/xml
<result>
<status>0</status>
<response>
<Title>some text</Title>
<Access>ReadWrite</Access>
<Shared>True</Shared>
<ProviderKey>some text</ProviderKey>
</response>
</result>