{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eloqua/json-schema/eloqua-activity-field-schema.json",
  "title": "ActivityField",
  "description": "The definition of a activity 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-activities-api-openapi.yml#/components/schemas/ActivityField",
  "properties": {
    "activityTypes": {
      "title": "activityTypes",
      "description": "The activity types associated with the activity field. The possible activity types are: <code>EmailSend</code>, <code>EmailOpen</code>, <code>EmailClickthrough</code>, <code>Subscribe</code>, <code>Unsubscribe</code>, <code>Bounceback</code>, <code>WebVisit</code>, <code>PageView</code>, and <code>FormSubmit</code>. See <a href='https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAB/index.html#CSHID=ActivityFields'>Activity Fields</a> for more information about activity fields.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/ActivityFilterType"
      }
    },
    "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 activity 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": {
    "ActivityFilterType": {
      "title": "ActivityFilterType",
      "description": "The activity types available for the activity field.",
      "default": "EmailSend",
      "enum": [
        "EmailSend",
        "EmailOpen",
        "EmailClickthrough",
        "Subscribe",
        "Unsubscribe",
        "Bounceback",
        "FormSubmit",
        "PageView",
        "WebVisit",
        "ExternalActivity",
        "SmsSend",
        "SmsReply",
        "SmsClickthrough"
      ],
      "type": "string"
    },
    "DataType": {
      "title": "DataType",
      "description": "The type of data, used for field definitions.",
      "default": "number",
      "enum": [
        "number",
        "string",
        "boolean",
        "date",
        "emailAddress"
      ],
      "type": "string"
    }
  }
}