Set Bucket Tags
Replace the tags on a bucket you own.
| Endpoint | Method | Admin Required |
|---|---|---|
/api/v1/buckets/:bucketName/tags | PUT | No |
Sets the tags for a bucket you own, overwriting any existing tags entirely - this does not merge with the current tag-set. Matches the S3-compatible API's PutBucketTagging semantics.
Path Parameters
bucketName
string required
The name of the bucket.
Request Body
tags
object required
A flat key-value map of tags. Send an empty object to clear all tags (equivalent to Delete Bucket Tags).
Example
{
"tags": {
"env": "prod",
"team": "storage"
}
}
Response
Returns the saved tags:
{
"tags": {
"env": "prod",
"team": "storage"
}
}
Errors
| Status | Reason |
|---|---|
400 | Missing bucket name |
404 | Bucket not found (or not owned by you) |