{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/calypsoai-com/json-schema/calypsoai-com-post-org-body-schema.json",
  "title": "PostOrgBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/calypsoai-com-org-api-openapi.yml#/components/schemas/PostOrgBody",
  "properties": {
    "email": {
      "anyOf": [
        {
          "format": "email",
          "maxLength": 255,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Email for the new user.",
      "title": "Email"
    },
    "name": {
      "description": "Name for the new organization",
      "title": "Name",
      "type": "string"
    },
    "roleIds": {
      "description": "Roles to assign to the user.",
      "items": {
        "anyOf": [
          {
            "format": "uuid",
            "type": "string"
          },
          {
            "type": "string"
          }
        ]
      },
      "title": "Roleids",
      "type": "array"
    },
    "roles": {
      "description": "Deprecated",
      "items": {
        "$ref": "#/$defs/UserRole"
      },
      "title": "Roles",
      "type": "array"
    },
    "sendInvite": {
      "default": true,
      "description": "Whether or not to send an invite email, if possible.",
      "title": "Sendinvite",
      "type": "boolean"
    },
    "userName": {
      "anyOf": [
        {
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Name for the new user.",
      "title": "Username"
    }
  },
  "required": [
    "name"
  ],
  "type": "object",
  "$defs": {
    "UserRole": {
      "enum": [
        "owner",
        "super_admin",
        "basic"
      ],
      "title": "UserRole",
      "type": "string"
    }
  }
}