{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eloqua/json-schema/eloqua-export-definition-schema.json",
  "title": "ExportDefinition",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eloqua-account-exports-api-openapi.yml#/components/schemas/ExportDefinition",
  "type": "object",
  "required": [
    "name",
    "fields"
  ],
  "properties": {
    "uri": {
      "type": "string",
      "description": "URI of the export definition",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "description": "Name of the export definition"
    },
    "fields": {
      "type": "object",
      "description": "Map of output column names to Eloqua field statement identifiers (e.g., {\"EmailAddress\": \"{{Contact.Field(C_EmailAddress)}}\"})",
      "additionalProperties": {
        "type": "string"
      }
    },
    "filter": {
      "type": "string",
      "description": "Filter expression to select records for export (e.g., \"{{Contact.CreatedAt}} > '2024-01-01'\")"
    },
    "maxRecords": {
      "type": "integer",
      "description": "Maximum number of records to export"
    },
    "dataRetentionDuration": {
      "type": "string",
      "description": "How long exported data is retained (e.g., PT12H for 12 hours)"
    },
    "areSystemTimestampsInUTC": {
      "type": "boolean",
      "description": "Whether timestamps are in UTC",
      "default": true
    },
    "autoDeleteDuration": {
      "type": "string",
      "description": "Auto-delete duration for the export definition"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "Creation timestamp",
      "readOnly": true
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Last update timestamp",
      "readOnly": true
    },
    "syncedInstanceUri": {
      "type": "string",
      "description": "URI of the last sync associated with this definition",
      "readOnly": true
    },
    "status": {
      "type": "string",
      "description": "Status of the export definition",
      "readOnly": true
    }
  }
}