{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-umbrella/json-schema/cisco-umbrella-create-contact-schema.json",
  "title": "CreateContact",
  "description": "Add the customer's contact information.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-umbrella-contacts-api-openapi.yml#/components/schemas/CreateContact",
  "type": "object",
  "required": [
    "contactType",
    "emailAddress"
  ],
  "properties": {
    "contactType": {
      "type": "string",
      "description": "The type of contact.",
      "enum": [
        "billing",
        "blockfeedback",
        "report",
        "serviceupdate",
        "support",
        "distributor"
      ]
    },
    "primaryContact": {
      "type": "string",
      "description": "Specify whether the contact is the primary contact.",
      "enum": [
        "no",
        "yes"
      ],
      "default": "no"
    },
    "firstName": {
      "type": "string",
      "description": "The first name of the contact."
    },
    "lastName": {
      "type": "string",
      "description": "The last name of the contact."
    },
    "streetAddress": {
      "type": "string",
      "description": "The street address for the contact."
    },
    "streetAddress2": {
      "type": "string",
      "description": "A secondary street address for the contact."
    },
    "city": {
      "type": "string",
      "description": "The city where the contact is located."
    },
    "state": {
      "type": "string",
      "description": "The state where the contact is located."
    },
    "zipCode": {
      "type": "string",
      "description": "The US zip code where the contact is located."
    },
    "countryCode": {
      "type": "string",
      "description": "The country code for the contact.",
      "minLength": 2,
      "maxLength": 3
    },
    "phoneNumber": {
      "type": "string",
      "description": "The phone number for the contact."
    },
    "phoneNumber2": {
      "type": "string",
      "description": "The second phone number for the contact."
    },
    "faxNumber": {
      "type": "string",
      "description": "The fax number for the contact."
    },
    "emailAddress": {
      "type": "string",
      "description": "The email address for the contact."
    },
    "settings": {
      "type": "object",
      "description": "The contact information of the distributor.",
      "required": [
        "organization",
        "distributorVisibility"
      ],
      "properties": {
        "primaryContact": {
          "type": "object",
          "properties": {
            "firstName": {
              "type": "string",
              "description": "The first name of the distributor contact."
            },
            "lastName": {
              "type": "string",
              "description": "The last name of the distributor contact."
            },
            "emailAddress": {
              "type": "string",
              "description": "Email address for the distributor contact."
            },
            "phoneNumber": {
              "type": "string",
              "description": "The phone number for the distributor contact."
            }
          }
        },
        "organization": {
          "type": "object",
          "description": "The properties of the organization.",
          "required": [
            "name",
            "email"
          ],
          "properties": {
            "name": {
              "type": "string",
              "description": "The organization name of distributor."
            },
            "email": {
              "type": "string",
              "description": "The organization email of distributor."
            }
          }
        },
        "distributorVisibility": {
          "type": "boolean",
          "description": "Specify whether primary contact has visibility into trials.",
          "default": false
        }
      }
    }
  }
}