{ "$schema": "https://json-structure.org/meta/core/v0/#", "$id": "https://raw.githubusercontent.com/api-evangelist/backblaze/refs/heads/main/json-structure/b2-native-api-create-bucket-request-structure.json", "name": "CreateBucketRequest", "description": "CreateBucketRequest schema from Backblaze B2 Native API", "type": "object", "properties": { "accountId": { "type": "string", "description": "The account ID", "example": "abc123def456" }, "bucketName": { "type": "string", "description": "The name of the new bucket", "example": "my-media-bucket" }, "bucketType": { "type": "string", "enum": [ "allPublic", "allPrivate" ], "description": "Privacy setting for the bucket", "example": "allPrivate" }, "bucketInfo": { "type": "object", "description": "User-defined info to store with the bucket" }, "corsRules": { "type": "array", "items": { "type": "object" }, "description": "CORS rules for the bucket" }, "lifecycleRules": { "type": "array", "items": { "type": "object" }, "description": "Lifecycle rules for the bucket" } }, "required": [ "accountId", "bucketName", "bucketType" ] }