Graphon API

Update a bucket

Changes the name, permission, availability, or policy atomically. Send the current revision as a quoted If-Match header. Names are case-sensitive and unique within the workspace. Renaming preserves the bucket ID and stored objects. Update S3 paths after renaming. A missing field keeps its value. Role: editor or higher.

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

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

The workspace id.

bucketIdstring

The bucket id.

Headers

if-matchstring (optional)

Required. The current bucket revision in quotes, for example "3". A missing revision returns 428. A stale revision returns 412.

Request body

namestring (optional)

A case-sensitive name unique within this workspace. Use 1 to 255 ASCII letters, digits, periods, underscores, or hyphens. The exact names . and .. are invalid.

permissionstring (optional)

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

availabilitystring (optional)

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

policyobject (optional)

Bucket policy settings, such as versioning and retention.

Was this page helpful?
View as Markdown