Get Started
API backend
API system
More information

POST api/2.0/files/file/{fileId}/copyas This function requires authentication

Description

Copies (and converts if possible) an existing file to the specified folder.

Parameters
Name Description Type Example
fileId
sent in url
File ID `0
Example
POST api/2.0/files/file/{fileid}/copyas
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "inDto": null
}
Returns

Copied file entry information

Example Response

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>