Backblaze · Schema
UpdateBucketRequest
UpdateBucketRequest schema from Backblaze B2 Native API
Cloud StorageObject StorageStorageBackup
Properties
| Name | Type | Description |
|---|---|---|
| accountId | string | The account ID |
| bucketId | string | The ID of the bucket to update |
| bucketType | string | New privacy setting |
| bucketInfo | object | New bucket info |
| corsRules | array | New CORS rules |
| lifecycleRules | array | New lifecycle rules |
| ifRevisionIs | integer | Only update if bucket revision matches this value |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/backblaze/refs/heads/main/json-schema/b2-native-api-update-bucket-request-schema.json",
"title": "UpdateBucketRequest",
"description": "UpdateBucketRequest schema from Backblaze B2 Native API",
"type": "object",
"properties": {
"accountId": {
"type": "string",
"description": "The account ID",
"example": "abc123def456"
},
"bucketId": {
"type": "string",
"description": "The ID of the bucket to update",
"example": "e73ede9969c64355ef8b"
},
"bucketType": {
"type": "string",
"enum": [
"allPublic",
"allPrivate"
],
"description": "New privacy setting"
},
"bucketInfo": {
"type": "object",
"description": "New bucket info"
},
"corsRules": {
"type": "array",
"items": {
"type": "object"
},
"description": "New CORS rules"
},
"lifecycleRules": {
"type": "array",
"items": {
"type": "object"
},
"description": "New lifecycle rules"
},
"ifRevisionIs": {
"type": "integer",
"description": "Only update if bucket revision matches this value"
}
},
"required": [
"accountId",
"bucketId"
]
}