{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eloqua/json-schema/eloqua-campaign-field-schema.json",
  "title": "CampaignField",
  "description": "The definition of a campaign field in the system.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eloqua-bulk-2-0-campaigns-api-openapi.yml#/components/schemas/CampaignField",
  "properties": {
    "createdAt": {
      "format": "date-time",
      "title": "createdAt",
      "description": "The date and time the entity was created, expressed using the ISO-8601 standard. This is a read-only property.",
      "type": "string"
    },
    "createdBy": {
      "title": "createdBy",
      "description": "The login id of the user who created the entity. This is a read-only property.",
      "type": "string"
    },
    "dataType": {
      "$ref": "#/$defs/DataType"
    },
    "defaultValue": {
      "title": "defaultValue",
      "description": "The field's default value.",
      "type": "string"
    },
    "hasNotNullConstraint": {
      "title": "hasNotNullConstraint",
      "description": "Indicates whether the field can have null values (i.e. empty).",
      "type": "boolean"
    },
    "hasReadOnlyConstraint": {
      "title": "hasReadOnlyConstraint",
      "description": "Indicates whether the field can be written to.",
      "type": "boolean"
    },
    "hasUniquenessConstraint": {
      "title": "hasUniquenessConstraint",
      "description": "Indicates whether the field must have a unique value.",
      "type": "boolean"
    },
    "internalName": {
      "title": "internalName",
      "description": "The field's internal name (used to uniquely identify it).",
      "type": "string"
    },
    "name": {
      "title": "name",
      "description": "The name of the campaign field definition.",
      "type": "string"
    },
    "statement": {
      "title": "statement",
      "description": "The markup language statement used to reference the field in an import or export mapping.",
      "type": "string"
    },
    "updatedAt": {
      "format": "date-time",
      "title": "updatedAt",
      "description": "The date and time the entity was last updated, expressed using the ISO-8601 standard. This is a read-only property.",
      "type": "string"
    },
    "updatedBy": {
      "title": "updatedBy",
      "description": "The login id of the user that last updated the entity. This is a read-only property.",
      "type": "string"
    },
    "uri": {
      "title": "uri",
      "description": "System-generated unique resource identifier that defines the definition for future referencing. This is a read-only property.",
      "type": "string"
    }
  },
  "$defs": {
    "DataType": {
      "title": "DataType",
      "description": "The type of data, used for field definitions.",
      "default": "number",
      "enum": [
        "number",
        "string",
        "boolean",
        "date",
        "emailAddress"
      ],
      "type": "string"
    }
  }
}