{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/venturu-com/json-schema/venturu-com-put-broker-request-schema-schema.json",
  "title": "putBrokerRequestSchema",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/venturu-com-openapi.json#/components/schemas/putBrokerRequestSchema",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The full name of the broker."
    },
    "email": {
      "type": "string",
      "description": "The email address of the broker."
    },
    "phone": {
      "type": [
        "string",
        "null"
      ],
      "description": "The phone number of the broker."
    },
    "avatarUrl": {
      "type": [
        "string",
        "null"
      ],
      "description": "A URL to the broker's profile picture."
    },
    "forwardingEmail": {
      "type": [
        "string",
        "null"
      ],
      "description": "If leads should be forwarded to a specific email address (i.e. in case of CRMs), this value can be specified."
    },
    "profile": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "bio": {
          "type": [
            "string",
            "null"
          ],
          "description": "A short biography of the broker."
        },
        "website": {
          "type": [
            "string",
            "null"
          ],
          "description": "The broker's personal or professional website."
        },
        "linkedInUrl": {
          "type": [
            "string",
            "null"
          ],
          "description": "The broker's LinkedIn profile URL."
        }
      },
      "description": "Additional profile information about the broker."
    },
    "licenses": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "object",
        "properties": {
          "licenseNumber": {
            "type": "string",
            "description": "The license number of the broker."
          },
          "state": {
            "type": "string",
            "description": "The state where the license is valid. It is recommended that this is specified as the full name of the state."
          },
          "country": {
            "type": "string",
            "description": "The country where the license is valid. It is recommended that this is specified as a two-letter ISO country code."
          }
        },
        "required": [
          "licenseNumber",
          "state",
          "country"
        ],
        "description": "A broker license."
      },
      "description": "A list of licenses held by the broker."
    },
    "serviceAreas": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "object",
        "properties": {
          "neighborhood": {
            "type": [
              "string",
              "null"
            ],
            "description": "The neighborhood served by the broker."
          },
          "city": {
            "type": [
              "string",
              "null"
            ],
            "description": "The city served by the broker."
          },
          "county": {
            "type": [
              "string",
              "null"
            ],
            "description": "The county served by the broker."
          },
          "state": {
            "type": "string",
            "description": "The state served by the broker. It is recommended that this is specified as the full name of the state."
          },
          "country": {
            "type": "string",
            "description": "The country served by the broker. It is recommended that this is specified as a two-letter ISO country code."
          }
        },
        "required": [
          "state",
          "country"
        ],
        "description": "A service area served by the broker. The highest service area level that needs to be specified is 'state'."
      },
      "description": "A list of service areas covered by the broker."
    }
  },
  "required": [
    "name",
    "email"
  ]
}