{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/acculynx/json-schema/acculynx-custom-field-schema.json",
  "title": "customField",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/acculynx-contacts-api-openapi.yml#/components/schemas/customField",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "_link": {
      "type": "string",
      "description": "The unique URI of the AccuLynx custom field value."
    },
    "customFieldDefinition": {
      "$ref": "#/$defs/customFieldDefinition"
    },
    "label": {
      "type": "string"
    },
    "fieldType": {
      "$ref": "#/$defs/customFieldType"
    },
    "values": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/customFieldValueItem"
      }
    },
    "modifiedBy": {
      "$ref": "#/$defs/companyUserLink"
    },
    "modifiedDate": {
      "type": "string",
      "description": "The date/time the custom field was modified, in UTC format."
    }
  },
  "$defs": {
    "companyUserLink": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique GUID of the AccuLynx User.",
          "format": "uuid"
        },
        "_link": {
          "type": "string",
          "description": "The unique URI of the AccuLynx User."
        }
      },
      "description": ""
    },
    "customFieldDefinition": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique unique identifier of the AccuLynx custom field.",
          "format": "uuid"
        },
        "_link": {
          "type": "string",
          "description": "The unique URI of the AccuLynx custom field."
        }
      }
    },
    "customFieldType": {
      "type": "string",
      "enum": [
        "Text",
        "Number",
        "Date",
        "Boolean"
      ],
      "description": "Specifies the data type (text, number, date, boolean) for the custom field."
    },
    "customFieldValueItem": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier of the AccuLynx custom field item.",
          "format": "uuid"
        },
        "value": {
          "type": "string",
          "description": "The item value of the custom field"
        }
      }
    }
  }
}