Storage Objects
post/storage/{bucketName}/copy

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    • HTTP bearer
    • or HTTP bearer

Path parameters

bucketName, string required

Storage bucket name

Request body

StorageCopyRequest required
from, string required

Source path

to, string required

Destination path

Response

Object copied

StorageObject required
id, string uuid required
bucket_id, string uuid required
name, string required

Full path within bucket (e.g., "users/abc123/avatar.png")

owner_id, string uuid nullable

Auth user who uploaded (null for anonymous/service)

is_public, boolean required

If true, the file can be downloaded with just an anon key (no user authentication). Files are private by default. Only the owner or a service key can change visibility.

size, integer required

File size in bytes

mime_type, string required

MIME type

etag, string

Entity tag for cache validation

metadata, object

Custom user metadata (key-value pairs). Limits: Maximum 50 keys, maximum 10KB total serialized size.

created_at, string date-time
updated_at, string date-time
public_url, string uri

Shareable public URL for this file (only set for public files with is_public=true). This URL requires NO authentication and can be embedded in HTML, shared via email, etc. The URL is properly URL-encoded by the server - use it as-is without additional encoding.

Changes

    • breaking

      added the new path request parameter bucketName

    • breaking

      added the new required request property from

    • breaking

      added the new required request property to

    17 more changes in this revision