File resource

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.

Comments


1 Comments

Last Updated: Nov 08,2024