{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/retool/main/json-schema/retool-create-user-request-schema.json",
  "title": "CreateUserRequest",
  "description": "Request body for creating a new user.",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/retool-users-api-openapi.yml#/components/schemas/CreateUserRequest",
  "type": "object",
  "required": [
    "email"
  ],
  "properties": {
    "email": {
      "type": "string",
      "format": "email",
      "description": "The email address for the new user (must be unique)."
    },
    "firstName": {
      "type": "string",
      "description": "The user's first name."
    },
    "lastName": {
      "type": "string",
      "description": "The user's last name."
    },
    "isAdmin": {
      "type": "boolean",
      "description": "Whether the user should have administrator privileges.",
      "default": false
    },
    "userType": {
      "type": "string",
      "description": "The user type (default or endUser).",
      "enum": [
        "default",
        "endUser"
      ],
      "default": "default"
    }
  }
}