s3_copy_object
Copy an object within or between B2 buckets using the S3-compatible CopyObject API, with support for copying specific versions and replacing metadata.
Instructions
Copy an object within B2 or between B2 buckets via B2's S3-compatible CopyObject API. The acl input is retained as a no-op S3 compatibility hint; B2 access follows the destination bucket policy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| acl | No | Accepted as a no-op S3 compatibility hint; B2 access follows the destination bucket policy. | |
| metadata | No | New metadata (only used with REPLACE). | |
| sourceKey | Yes | The source object key. | |
| contentType | No | New content type (only used with REPLACE). | |
| sourceBucket | Yes | The source bucket name. | |
| destinationKey | Yes | The destination object key. | |
| sourceVersionId | No | Copy a specific version of the source object. | |
| destinationBucket | Yes | The destination bucket name. | |
| metadataDirective | No | COPY copies metadata from source; REPLACE uses the provided metadata. | COPY |