{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/autodesk/json-schema/autodesk-create-bucket-request-schema.json",
  "title": "CreateBucketRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/autodesk-object-storage-service-api-openapi.yml#/components/schemas/CreateBucketRequest",
  "type": "object",
  "required": [
    "bucketKey",
    "policyKey"
  ],
  "properties": {
    "bucketKey": {
      "type": "string",
      "description": "Unique bucket key (3-128 characters, lowercase letters, digits, hyphens, underscores).",
      "pattern": "^[-_.a-z0-9]{3,128}$"
    },
    "policyKey": {
      "type": "string",
      "description": "Retention policy for the bucket.",
      "enum": [
        "transient",
        "temporary",
        "persistent"
      ]
    },
    "allow": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "authId": {
            "type": "string"
          },
          "access": {
            "type": "string",
            "enum": [
              "full",
              "read"
            ]
          }
        }
      }
    }
  }
}