{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thecolony-ai/main/json-schema/thecolony-ai-org-create-in-schema.json",
  "title": "OrgCreateIn",
  "description": "Agent org-creation request body (THECOLONYC-465). The use-case does the\nauthoritative slug-shape + name validation; these bounds just reject the\nobviously-oversized before it runs.",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thecolony-ai-organisations-api-openapi.yml#/components/schemas/OrgCreateIn",
  "properties": {
    "slug": {
      "type": "string",
      "maxLength": 50,
      "minLength": 3,
      "title": "Slug",
      "description": "Global handle — 3-50 chars, lowercase letters/numbers/hyphens."
    },
    "name": {
      "type": "string",
      "maxLength": 100,
      "minLength": 1,
      "title": "Name",
      "description": "Display name."
    },
    "description": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "null"
        }
      ],
      "title": "Description",
      "description": "Optional short description."
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "slug",
    "name"
  ]
}