Report uploaded parts

/upload/multipart/{upload_id}

This call allows you to report the upload multiple file parts at once.

https://cgc-api.sbgenomics.com/v2/upload/multipart/{upload_id}

Request

Example request

POST /v2/upload/multipart/EXAMPLE_ID HTTP/1.1
Host: cgc-api.sbgenomics.com
X-SBG-Auth-Token: 3210a98c1db9318fa9d9273156740f74

{
  "parts": [
    {
      "part_number": 1,
      "response": {
        "headers": {
          "ETag": "9f1b6da2189615a419e8b00a27d20b0c"
        }
      }
    }
  ]
}
curl --data '@report_parts.json' -s -H "X-SBG-Auth-Token: 3210a98c1db9318fa9d9273156740f74" -H "content-type: application/json" -X POST "https://cgc-api.sbgenomics.com/v2/upload/multipart/EXAMPLE_ID"

Header Fields

NameDescription
X-SBG-Auth-Token
required
Your CGC 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.

Request body

In the body of the request, you should enter key-value pairs describing the task. The keys, and their permitted values, are described below.

KeyDatatype of valueDescription of value
partsArray of objectsThis key should contain an array of objects describing the individual part upload reports. Each of these objects should be formatted exactly as the whole body of the Report an uploaded part call.

Example request body

{
  "parts": [
    {
      "part_number": 1,
      "response": {
        "headers": {
          "ETag": "9f1b6da2189615a419e8b00a27d20b0c"
        }
      }
    },
    {
      "part_number": 2,
      "response": {
        "headers": {
          "ETag": "266f8e5d06b6c21495646fe48b3f2f0e"
        }
      }
    }
  ]
}

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 200 OK
Date: Tue, 29 Mar 2016 16:36:46 GMT
Content-Type: application/json
Connection: close
Language