v1

latestOpenAPI 3.0.02026-07-17120114186.8 KB
bus

Store object

Stores or updates an object.

put/bus/object/{key}

Path parameters

keystring required
Example:folder/file

The key of the object

Request body

bucketstring

The name of the bucket.

eTagstring

The ETag of the object

mimeTypestring

The MIME type of the object

metadataObjectUserMetadata

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

Example request

{
  "bucket": "default",
  "object": {
    "bucket": "default",
    "etag": "W/\"33a64df551425fcc55e4d42a148795d9f25f89d4\""
  }
}

Response

Successfully stored object