{ "$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-create-bucket-request-schema.json", "title": "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" ] }