Abort a multipart upload

This call aborts an ongoing upload.

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

Request

Example request

DELETE /v2/upload/multipart/X5FXjV7JVCdg0cidZKIOOZRvAgahy9znuHq1PMsOZ85de6x53UOcJAcCDXANVTpm HTTP/1.1
Host: api.sbgenomics.com
X-SBG-Auth-Token: 3259c50e1ac5426ea8f1273259740f74
curl -s -H "X-SBG-Auth-Token: 3259c50e1ac5426ea8f1273259740f74" -H "content-type: application/json" -X DELETE "https://api.sbgenomics.com/v2/upload/multipart/X5FXjV7JVCdg0cidZKIOOZRvAgahy9znuHq1PMsOZ85de6x53UOcJAcCDXANVTpm"
from sevenbridges import Api

api = Api(url='https://api.sbgenomics.com/v2',
          token='3259c50e1ac5426ea8f1273259740f74')

# create and start upload without blocking by using wait=False
upload = api.files.upload(
    path='CanFam3.1.dna_rm.toplevel.fa.gz',
    project='RFranklin/my-project',
    wait=False
)
upload.start()

# send DELETE request to SB API
upload.stop()

Header Fields

Name

Description

X-SBG-Auth-Token
required

Your Seven Bridges Platform authentication token.

Content-Type
required

application/json

Path parameters

Name

Description

upload_id

The ID for the upload, returned by a call to initialize a multipart upload or to list current multipart uploads.

Response

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