Files

Copy a file between projects

Copies a source file into another project, using the source file path as the target path.

post/files/copy

Request

  • Base URL
    https://api.deepnote.com/v2
  • URL
    https://api.deepnote.com/v2/files/copy
  • Auth
    HTTP bearer

Request body

sourceProjectIdstring uuid required

Project that contains the source file.

targetProjectIdstring uuid required

Project to copy the file into.

sourceFilePathstring required

File path within the source project. The same normalized path is used in the target project.

Example request

{
  "sourceProjectId": "61a8d92e-aa72-4f2e-8dce-cb78e10ecf7c",
  "targetProjectId": "a7306e95-d5fb-4b63-8274-241ab9543e5d",
  "sourceFilePath": "data/input.csv"
}

Response

File copied

Changes

No recorded changes to this operation across all 29 revisions of this API.