v1

latestOpenAPI 3.0.02026-07-17120114186.8 KB
bus

Create a multipart upload

Creates a new multipart upload and returns an upload ID.

post/bus/multipart/create

Request body

bucketstring

The name of the bucket.

keystring

The key of the object to upload

mimeTypestring

The MIME type of the object

metadataObjectUserMetadata

User-defined metadata about an object provided through X-Sia-Meta- headers

disableClientSideEncryptionboolean

Whether to disable client-side encryption

Example request

{
  "bucket": "default",
  "key": "folder/file",
  "mimeType": "text/plain"
}

Response

Successfully created multipart upload

uploadIDstring byte

The ID of the multipart upload

Example response

{
  "uploadID": "f1e2d3c4b5a697887776665544332211ffeeddccbbaa99887766554433221100"
}