{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buildworkpro-com/json-schema/buildworkpro-com-create-contact-schema.json",
  "title": "CreateContact",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/buildworkpro-com-contacts-api-openapi.yml#/components/schemas/CreateContact",
  "type": "object",
  "properties": {
    "firstName": {
      "type": "string",
      "minLength": 1
    },
    "lastName": {
      "type": "string",
      "minLength": 1
    },
    "companyName": {
      "type": "string",
      "minLength": 1
    },
    "position": {
      "type": [
        "string",
        "null"
      ]
    },
    "parentContactId": {
      "type": [
        "integer",
        "null"
      ],
      "exclusiveMinimum": 0
    },
    "email": {
      "type": [
        "string",
        "null"
      ],
      "format": "email"
    },
    "phone": {
      "type": [
        "string",
        "null"
      ]
    },
    "mobile": {
      "type": [
        "string",
        "null"
      ]
    },
    "website": {
      "type": [
        "string",
        "null"
      ]
    },
    "notes": {
      "type": [
        "string",
        "null"
      ]
    },
    "type": {
      "type": "string",
      "enum": [
        "customer",
        "general_contractor",
        "architect",
        "city",
        "hoa",
        "vendor",
        "subcontractor",
        "supplier",
        "employee",
        "partner",
        "other"
      ]
    }
  },
  "required": [
    "type"
  ]
}