Report uploaded parts

This call allows you to report the upload of multiple code packages.

Request

https://api.sbgenomics.co/v2/automation/upload/{upload_id}
https://eu-api.sbgenomics.com/v2/automation/upload/{upload_id}

Example request

POST /v2/automation/upload/nKrFjmp0fcjSnQaQp7yxAG4k0qwqTGc6x7aI43ZjcEbWDztf8rou1anvjOMwwlfy HTTP/1.1
Host: api.sbgenomics.com
X-SBG-Auth-Token: 4e786405a9f54c00997f7a2a5484186d
X-SBG-Advance-Access: advance
Content-Type: application/json

{
        "parts":[
            {
                "part_number":1,
                "response": {
                    "headers": {
                    "ETag": "9f1b6da2989615a414e8b00a27d20b0c"
                }
            }
        }]
    }
curl --location --request POST 'https://api-zxc-vayu.sbgenomics.com/v2/automation/upload/nKrFjmp0fcjSnQaQp7yxAG4k0qwqTGc6x7aI43ZjcEbWDztf8rou1anvjOMwwlfy' \
--header 'X-SBG-Auth-Token: 4e786405a9f54c00997f7a2a5484186d' \
--header 'X-SBG-Advance-Access: advance' \
--header 'Content-Type: application/json' \
--data-raw '{
        "parts":[
            {
                "part_number":1,
                "response": {
                    "headers": {
                    "ETag": "9f1b6da2989615a414e8b00a27d20b0c"
                }
            }
        }]
    }'

Header Fields

Name

Description

X-SBG-Auth-Token
required

Your Seven Bridges Platform authentication token.

Content-Type
required

application_json

X-SBG-Advance-Access
required

advance

Path parameters

Name

Description

upload_id

The ID for the upload, returned by the call to initialize a multipart code package 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.

Key

Datatype of value

Description of value

parts

Array of Objects

This 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": "9f1b6da2989615a414e8b00a27d20b0c"
                }
            }
        }]
    }

Response

See a list of Seven Bridges Platform-specific response codes that may be contained in the body of the response.