Copy file
OVERVIEW
Copy a file from one folder location to another folder location. The target folder location can be in another site.
Request
POST /files/{fileid}/parent?targetfolder=<targetfolderid>
While copying the file, the version history and permissions will not be copied over, but the file will inherit the permissions of the new folder under which it is moved.
Parameters
Parameter Name | Value | Description |
---|---|---|
fileid (required) | Int | The id of the file which is to be moved |
targetfolderid(required) | Int | The target folder id of the folder under which the file is to be copied |
sourceclient (optional) | string | The source client for changes API |
Request body
No request body is required for this call.
Response
API endpoint returns a 200 OK in case of a successful operation.
Hi Imran Aziz, can I ask for an enhancement to this API endpoint? When copying a file, it makes sense that the originator would want to know what the fileid of the newly copied file is. Can I request that the response returned is the same as for the "Add file" endpoint? Thanks in advance, Andrew
Comments
1 Comments