{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/broad-institute/json-schema/broad-institute-register-request-schema.json",
  "title": "RegisterRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/broad-institute-users-api-openapi.yml#/components/schemas/RegisterRequest",
  "type": "object",
  "properties": {
    "acceptsTermsOfService": {
      "type": "boolean",
      "description": "Does the user accept the Terra Terms of Service?"
    },
    "profile": {
      "$ref": "#/$defs/Profile"
    }
  },
  "$defs": {
    "Profile": {
      "required": [
        "firstName",
        "institute",
        "institutionalProgram",
        "lastName",
        "nonProfitStatus",
        "pi",
        "programLocationCity",
        "programLocationCountry",
        "programLocationState",
        "title"
      ],
      "type": "object",
      "properties": {
        "firstName": {
          "type": "string",
          "description": "User's first name"
        },
        "lastName": {
          "type": "string",
          "description": "User's last name"
        },
        "title": {
          "type": "string",
          "description": "User's title"
        },
        "contactEmail": {
          "type": "string",
          "description": "User's contact email (if different from account email)"
        },
        "institute": {
          "type": "string",
          "description": "User's home institution"
        },
        "institutionalProgram": {
          "type": "string",
          "description": "User's institutional program"
        },
        "programLocationCity": {
          "type": "string",
          "description": "User's program location city"
        },
        "programLocationState": {
          "type": "string",
          "description": "User's program location state"
        },
        "programLocationCountry": {
          "type": "string",
          "description": "User's program location country"
        },
        "pi": {
          "type": "string",
          "description": "Principal Investigator"
        },
        "nonProfitStatus": {
          "type": "string",
          "description": "User's program non-profit status"
        },
        "termsOfService": {
          "type": "string",
          "description": "The Terms of Service url, \"app.terra.bio/#terms-of-service\", which a user must include to show they accept the Terms of Service"
        },
        "department": {
          "type": "string",
          "description": "User's department within an institution"
        },
        "interestInTerra": {
          "type": "string",
          "description": "A string of comma-separated values of why the User is interested in Terra"
        }
      }
    }
  }
}