Update file visibility (public/private)
Changed onChange whether a file is publicly accessible. Only the file owner or a service key can change visibility. If the bucket defines UPDATE policies, the owner must also satisfy one of them.
- Public files can be downloaded with just an anon key (no user authentication required)
- Private files (default) require authentication and must pass policy checks
- All downloads go through the Volcano API - there is no direct access to the underlying store
Request
- Base URLhttps://api.volcano.dev
- Auth
- HTTP bearer
- or HTTP bearer
Path parameters
Storage bucket name
Object path within bucket
Request body
Whether the file should be publicly accessible
Response
Visibility updated
Full path within bucket (e.g., "users/abc123/avatar.png")
Auth user who uploaded (null for anonymous/service)
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.
File size in bytes
MIME type
Entity tag for cache validation
Custom user metadata (key-value pairs). Limits: Maximum 50 keys, maximum 10KB total serialized size.
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
is_public - breaking
the request's body type changed from no type to
object
13 more changes in this revision
- breaking