Report an uploaded part

This call allows you to report the upload of a file part.

📘

If you are using Seven Bridges Platform EU, please use the following endpoint: https://eu-api.sbgenomics.com/v2/upload/multipart/{upload_id}/part

Formatting the response object

When reporting a part, the structure of the response object is different from that of the report object received when getting a part upload URL. Assuming that you have collected the information from the HTTP part upload request, you should format the response object in this call as a set of key-value mappings. The keys in these mappings are the headers and other response elements described in getting upload URL for a file part, and their values are the strings that you have collected from the HTTP part upload request.

See the example below for an illustration of how to format a part report request when the Seven Bridges Platform stores your files on Amazon S3.

KeyDatatype of valueDescription of value
headersObject of String keys to String valuesA map of header keys from the Get upload URL for a file part to their values returned by the successful HTTP part upload request you've made.
bodyObjectReserved for future use

Example request body

{ "part_number": 1, "response": { "headers": { "ETag": "1234e128411f2bace2sadfdabe610f30" } } }

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

Path Params
string
required

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

Body Params
int32

The number of the file part you are reporting. Part numbers start from 1.

response
object

This object should contain the information collected from a successful HTTP part upload request. See the formatting the response object section below for an explanation of its structure.

Headers
string
required

Your Seven Bridges Platform authentication token. For security reasons, token will not be automatically populated in the generated code sample. Please replace <your-token-here> with your token before executing this call.

Response

Language
Choose an example:
application/json