Buckets

Update a bucket

PATCH/v1/workspaces/{workspaceId}/buckets/{bucketId}

Changes the permission, availability, or policy of a bucket. A missing field keeps its value. Role: editor or higher.

Authentication

Send your Graphon API key with every request. The value is the whole API key that Graphon showed when you created it. See Authentication.

Authorization: Bearer <GRAPHON_API_KEY>

Path parameters

workspaceId

string

The workspace id.

bucketId

string

The bucket id.

Request body

permission

string (optional)

Who can read objects: private, or public-read for anonymous GET and HEAD. One of: private, public-read.

availability

string (optional)

An offline bucket rejects reads and writes. One of: online, offline.

policy

object (optional)

Bucket policy settings, such as versioning and retention.

Was this page helpful?