{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/session-exchange-com/json-schema/session-exchange-com-tenant-create-request-schema.json",
  "title": "TenantCreateRequest",
  "description": "Create a tenant (specs/multi-tenancy/v0.1 Phase 2). Global-admin only.\nThe hostname's DNS/TLS/Ingress is provisioned off-system FIRST; this POST then\nregisters the mapping and seeds the tenant (a default env + a one-time\ntenant-admin token). `id` is also the data-subtree name.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/session-exchange-com-openapi.json#/components/schemas/TenantCreateRequest",
  "properties": {
    "id": {
      "type": "string",
      "maxLength": 63,
      "minLength": 1,
      "pattern": "^[a-z][a-z0-9-]*$",
      "title": "Id"
    },
    "hostnames": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "minItems": 1,
      "title": "Hostnames"
    },
    "display_name": {
      "type": "string",
      "maxLength": 200,
      "title": "Display Name",
      "default": ""
    },
    "seed_profile": {
      "type": "string",
      "enum": [
        "standard",
        "minimal"
      ],
      "title": "Seed Profile",
      "default": "standard"
    },
    "ingress_ready": {
      "type": "boolean",
      "title": "Ingress Ready",
      "default": true
    },
    "quota": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Quota"
    },
    "description": {
      "type": "string",
      "maxLength": 2000,
      "title": "Description",
      "default": ""
    }
  },
  "type": "object",
  "required": [
    "id",
    "hostnames"
  ]
}