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://cgc-api.sbgenomics.com/v2/upload/multipart/{upload_id}/complete

Request

Example request

POST /v2/upload/multipart/X5FKyV7JVCdg0cidZKIOOZRvAgahy9znuHq1PMsOZ85de6x53UOcJAcCDXANVTpm/complete HTTP/1.1
Host: cgc-api.sbgenomics.com
X-SBG-Auth-Token: 3210a98c1db9318fa9d9273156740f74
curl -s -H "X-SBG-Auth-Token: 3210a98c1db9318fa9d9273156740f74" -H "content-type: application/json" -X DELETE "https://cgc-api.sbgenomics.com/v2/upload/multipart/X5FKyV7JVCdg0cidZKIOOZRvAgahy9znuHq1PMsOZ85de6x53UOcJAcCDXANVTpm/complete"

Header Fields

Name

Description

X-SBG-Auth-Token
required

Your CGC 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 CGC-specific response codes that may be contained in the body of the response.

Example response body

HTTP/1.1 201 Created
Date: Tue, 29 Mar 2016 16:36:46 GMT
Content-Type: application/json
Connection: close

{
  "href": "http://cgc-api.sbgenomics.com/v2/files/36cdaf29f5b4568b3c86e09d",
  "path": "/Projects/e27c4f6e-5c41-4ff2-74a3-e34a70af9ace/CanFam3.1.dna_rm.toplevel.fa.gz",
  "id": "36cdaf29f5b4568b3c86e09d",
  "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"
}
{
  "href": "http://cgc-api.sbgenomics.com/v2/files/36cdaf29f5b4568b3c86e09d",
  "path": "/Projects/e27c4f6e-5c41-4ff2-74a3-e34a70af9ace/CanFam3.1.dna_rm.toplevel.fa.gz",
  "id": "36cdaf29f5b4568b3c86e09d",
  "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"
}
Language