/files
This call moves a file from one folder to another. Moving of files is only allowed within the same project.
https://cavatica-api.sbgenomics.com/v2/files/{file_id}/actions/moveRequest
Example request
POST /v2/files/{file_id}/actions/move HTTP/1.1
Host: cavatica-api.sbgenomics.com
X-SBG-Auth-Token: 3259c50e1ac5426ea8f1273259740f74
Content-Type: application/jsoncurl --data '@move.json' -X POST -H "X-SBG-Auth-Token: 6282d5e2121d43e7900e9d52b15845e7" -H "Content-Type: application/json" 'https://cavatica-api.sbgenomics.com/files'Header Fields
Name | Description |
|---|---|
| Your CAVATICA authentication token. |
|
|
Request body
In the request body, you should enter the following list of key-value pairs:
Name | Data type | Description |
|---|---|---|
| String | Specifies the target folder by using its ID. |
| String | Specifies a new name for a file in case you want to rename it. |
Example response body
{
"parent": "567890abc9b0307bc0414164",
"name": "1000G_omni2.5.hg38.vcf"
}Response
See a list of CAVATICA-specific response codes that may be contained in the body of the response..
