Complete a multipart upload

/upload/multipart/{upload_id}/complete

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://api.sb.biodatacatalyst.nhlbi.nih.gov/v2/upload/multipart/{upload_id}/complete

Request

Example request

POST /v2/upload/multipart/8rand0mz18Ek4TjT5bIyCNdijDRJBwTLjSRiCaggkYjSHkKiLlNyVPt4BNpFUGI4/complete HTTP/1.1
Host: api.sb.biodatacatalyst.nhlbi.nih.gov
X-SBG-Auth-Token: 3259c50e1ac5426ea8f1273259740f74
curl -s -H "X-SBG-Auth-Token: 7942f56901534434a054dafc3813bc96" -H "content-type: application/json" -X DELETE "https://api.sb.biodatacatalyst.nhlbi.nih.gov/v2/upload/multipart/8rand0mz18Ek4TjT5bIyCNdijDRJBwTLjSRiCaggkYjSHkKiLlNyVPt4BNpFUGI4/complete"

Header Fields

NameDescription
X-SBG-Auth-Token
required
Your authentication token.
Content-Type
required
application/json

Path parameters

NameDescription
upload_idThe ID for the upload, returned by the call to initialize a multipart upload.

Response

See a list of response codes that may be contained in the body of the response.

Example response body

{
  "href": "http://api.sb.biodatacatalyst.nhlbi.nih.gov/v2/files/567890abc9b0307bc0414164",
  "path": "/Projects/67f68072-45b6-12b3-789c-37be8b0f2f04/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"
}