post https://api.sbgenomics.com/v2/async/files/copy
This call lets you perform a bulk copy operation of files and folders. Any underlying folder structure will be preserved. You can copy:
- to a folder within the same project
- to another project
- to a folder in another project
If you are using Seven Bridges Platform EU, please use the following endpoint:
https://eu-api.sbgenomics.com/v2/async/files/copy
Example request body
{
"items": [
{
"file": "5c6d3f30e4b038563238932f",
"parent": "1e3de690c4b058509735944e",
"project": "",
"name": "my-new-file"
},
{
"file": "5c6d3f30e4b038563238932b",
"parent": "2c6d3b10e5e031231235932g",
"name": ""
},
{
"file": "5c6d3f30e4b0385632389331",
"parent": "85c6d3f30e4b038516235932h",
"name": ""
}
]
}
Response
Response body
Key | Data type of value | Description of value |
---|---|---|
type | string | The type of job, which is COPY in the case of copying files. |
total_files | string | The total number of files which will be processed. You can obtain this information using the call for getting the details of a copy job. |
state | string | The state is SUBMITTED at the time of making this call. |
result | string | This key will show the result if available at the time the call is made. Use the details of a copy job to see more information. |
id | string | ID of this copy job. |
failed_files | string | The number of failed files if that information is available at the time of the call. You can get details of a copy job with a dedicated call. |
completed_files | string | The number of completed files if that information is available at the time of the call. You can get details of a copy job with a dedicated call. |