v1

latestOpenAPI 3.0.02026-07-17120114186.8 KB
bus

Copy object

Copies an object from one location to another.

post/bus/objects/copy

Request body

sourceBucketstring

The name of the bucket.

destinationBucketstring

The name of the bucket.

sourceKeystring

The key of the source object

destinationKeystring

The key for the destination object

mimeTypestring

The MIME type for the copied object

metadataObjectUserMetadata

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

Example request

{
  "sourceBucket": "default",
  "destinationBucket": "default"
}

Response

Successfully copied object

bucketstring

The name of the bucket.

etagstring

The ETag of the object

healthnumber float

The health of the object

modTimestring date-time

When the object was last modified

keystring

The key of the object

sizeinteger

The size of the object in bytes

mimeTypestring

The MIME type of the object

Example response

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