post https://cavatica-api.sbgenomics.com/v2
/upload/multipart/{upload_id}/complete
For general information on the API, including formatting, parameters, and pagination, please see the API Overview.
This call must be issued to report the completion of a file upload.
An optional list of remaining parts may be given in the body of this request. The format of this list is the same as described in Report uploaded parts.
https://cavatica-api.sbgenomics.com/v2/upload/multipart/{upload_id}/complete
Request
Example request
POST /v2/upload/multipart/Zrand0mrFtYj3rooeFcnawiVhoZp1sF0OK3RVvpWucTKGtNpvDvXFrj4JKOU1qyV/complete HTTP/1.1
Host: cavatica-api.sbgenomics.com
X-SBG-Auth-Token: 3259c50e1ac5426ea8f1273259740f74
curl -s -H "X-SBG-Auth-Token: 7942f56901534434a054dafc3813bc96" -H "content-type: application/json" -X DELETE "https://cavatica-api.sbgenomics.com/v2/upload/multipart/Zrand0mrFtYj3rooeFcnawiVhoZp1sF0OK3RVvpWucTKGtNpvDvXFrj4JKOU1qyV/complete"
Header Fields
Name | Description |
---|---|
X-SBG-Auth-Token required | Your CAVATICA authentication token. |
Content-Type required | application/json |
Path parameters
Name | Description |
---|---|
upload_id | The ID for the upload, returned by the call to initialize a multipart upload. |
Response
See a list of CAVATICA-specific response codes that may be contained in the body of the response.
Example response body
{
"href": "http://cavatica-api.sbgenomics.com/v2/files/567890abc9b0307bc0414164",
"path": "/Projects/e27c4f6b-5e41-4ff2-74a3-e34a70af9ace/CanFam3.1.dna_rm.toplevel.fa.gz",
"id": "567890abc9b0307bc0414164",
"project": "RFranklin/my-project",
"name": "CanFam3.1.dna_rm.toplevel.fa.gz",
"type": "file",
"size": 433759572,
"created_on": "2016-02-27T16:36:41Z",
"modified_on": "2016-02-27T16:36:41Z"
}