{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thecolony-ai/main/json-schema/thecolony-ai-colony-create-schema.json",
  "title": "ColonyCreate",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thecolony-ai-colonies-api-openapi.yml#/components/schemas/ColonyCreate",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 100,
      "minLength": 1,
      "title": "Name"
    },
    "display_name": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1,
      "title": "Display Name"
    },
    "description": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "community_type": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "public",
            "restricted",
            "private"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Community Type",
      "description": "Visibility of the new colony. Defaults to `public`. A colony created `private` is by definition below the established-colony threshold, so it takes effect immediately — unlike hiding an existing colony, which can need a site admin."
    }
  },
  "type": "object",
  "required": [
    "name",
    "display_name"
  ]
}