{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-data-contacts-with-keys-schema.json",
  "title": "data_contacts_withKeys",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-vista-hq-openapi.yml#/components/schemas/data_contacts_withKeys",
  "allOf": [
    {
      "type": "object",
      "properties": {
        "__ryvitKeys": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Array of key paths that can be used to retrieve this object."
        },
        "__modifiedUTC": {
          "type": "string",
          "description": "UTC timestamp of when this object was last modified in the cache."
        }
      }
    },
    {
      "$ref": "#/$defs/data_contacts"
    }
  ],
  "$defs": {
    "data_contacts": {
      "required": [
        "HQContactID",
        "ContactGroup",
        "ContactSeq"
      ],
      "type": "object",
      "properties": {
        "HQContactID": {
          "type": "integer",
          "description": ""
        },
        "ContactGroup": {
          "type": "integer",
          "description": ""
        },
        "ContactSeq": {
          "type": "integer",
          "description": ""
        },
        "FirstName": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": "**[PROTECTED FIELD]** ",
          "x-protectedValue": true
        },
        "MiddleInitial": {
          "maxLength": 1,
          "type": [
            "string",
            "null"
          ],
          "description": "**[PROTECTED FIELD]** ",
          "x-protectedValue": true
        },
        "LastName": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": "**[PROTECTED FIELD]** ",
          "x-protectedValue": true
        },
        "CourtesyTitle": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Title": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Organization": {
          "maxLength": 60,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Phone": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": "**[PROTECTED FIELD]** ",
          "x-protectedValue": true
        },
        "PhoneExtension": {
          "maxLength": 5,
          "type": [
            "string",
            "null"
          ],
          "description": "**[PROTECTED FIELD]** ",
          "x-protectedValue": true
        },
        "Cell": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": "**[PROTECTED FIELD]** ",
          "x-protectedValue": true
        },
        "Fax": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": "**[PROTECTED FIELD]** ",
          "x-protectedValue": true
        },
        "Email": {
          "maxLength": 60,
          "type": [
            "string",
            "null"
          ],
          "description": "**[PROTECTED FIELD]** ",
          "x-protectedValue": true
        },
        "Address": {
          "maxLength": 60,
          "type": [
            "string",
            "null"
          ],
          "description": "**[PROTECTED FIELD]** ",
          "x-protectedValue": true
        },
        "AddressAdditional": {
          "maxLength": 60,
          "type": [
            "string",
            "null"
          ],
          "description": "**[PROTECTED FIELD]** ",
          "x-protectedValue": true
        },
        "City": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": "**[PROTECTED FIELD]** ",
          "x-protectedValue": true
        },
        "State": {
          "maxLength": 4,
          "type": [
            "string",
            "null"
          ],
          "description": "**[PROTECTED FIELD]** ",
          "x-protectedValue": true
        },
        "Country": {
          "maxLength": 2,
          "type": [
            "string",
            "null"
          ],
          "description": "**[PROTECTED FIELD]** ",
          "x-protectedValue": true
        },
        "Zip": {
          "maxLength": 12,
          "type": [
            "string",
            "null"
          ],
          "description": "**[PROTECTED FIELD]** ",
          "x-protectedValue": true
        },
        "Notes": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "UniqueAttchID": {
          "maxLength": 36,
          "minLength": 36,
          "pattern": "[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "__custom_fields": {
          "type": "object",
          "description": "This property will be added if there are any custom fields defined for this object in Vista.  Each custom field will be a property of this object."
        }
      }
    }
  }
}