Copy a file between projects

This call copies the specified file to a new project. Files retain their metadata when copied, but may be assigned new names in their target project.

To make this call, you should have copy permission within the project you are copying from.

If you want to copy multiple files, the recommended way is to do it in bulk considering the API rate limit (learn more).

📘

If you are using Seven Bridges Platform EU, please use the following endpoint: https://eu-api.sbgenomics.com/v2/files/{file_id}/actions/copy

👍

file_ids

Recall from the API Overview that the file_id is a hexadecimal string.

You can get the file_id for a file by making the call to list files within a specified project (primary method).

Example request body

{
  "project": "RFranklin/my-project", 
  "name": "new-file"
}
Language