{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eloqua/json-schema/eloqua-export-schema.json",
  "title": "Export",
  "description": "The request body defines the details of the export definition. The following table displays properties for creating export definitions.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eloqua-bulk-2-0-accounts-api-openapi.yml#/components/schemas/Export",
  "properties": {
    "areSystemTimestampsInUTC": {
      "title": "areSystemTimestampsInUTC",
      "description": "Whether or not <a href='https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAB/index.html#CSHID=SystemTimestamps'>system timestamps</a> will be exported in UTC. See <a href='https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAB/index.html#CSHID=BulkFiltering'>Filtering tutorial</a> for an example of filtering when <code>areSystemTimestampsInUTC</code> is set to <code>true</code>.",
      "type": "boolean"
    },
    "autoDeleteDuration": {
      "title": "autoDeleteDuration",
      "description": "Time until the definition will be deleted, expressed using the ISO-8601 standard.",
      "type": "string"
    },
    "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"
    },
    "crmAccountIdField": {
      "title": "crmAccountIdField",
      "description": "The ML statement for an existing contact field which addresses the CRM account ID.",
      "type": "string"
    },
    "dataRetentionDuration": {
      "title": "dataRetentionDuration",
      "description": "The length of time exported data should remain in the staging area. Bulk API 2.0 uses the ISO-8601 standard for specifying all durations. Valid values are anything from PT1H (1 hour) to P14D (2 weeks). This setting will default to PT12H (12 hours) if not explicitly set during export definition creation.",
      "type": "string"
    },
    "externalSystemId": {
      "title": "externalSystemId",
      "description": "The external system ID is used when exporting data containing CRM fields.",
      "type": "integer"
    },
    "fields": {
      "title": "fields",
      "description": "List of fields to be included in the operation.",
      "type": "object"
    },
    "filter": {
      "title": "filter",
      "description": "The filter parameter uses Eloqua Markup Language to only return certain results. Learn more about <a href='http://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAB/index.html#CSHID=BulkFiltering'>filters</a>.",
      "type": "string"
    },
    "kbUsed": {
      "format": "int64",
      "title": "kbUsed",
      "description": "The amount of space used in kilobytes. This is a read-only property.",
      "type": "integer"
    },
    "maxRecords": {
      "title": "maxRecords",
      "description": "The maximum amount of records.",
      "type": "integer"
    },
    "name": {
      "title": "name",
      "description": "The name of the export definition.",
      "type": "string"
    },
    "productIdField": {
      "title": "productIdField",
      "description": "The ML statement for an existing campaign field which addresses the product ID.",
      "type": "string"
    },
    "syncActions": {
      "title": "syncActions",
      "description": "Specifies operations to perform during the sync with a maximum of 10 actions. See <a href='http://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAB/index.html#CSHID=SyncActions'>Sync actions parameters</a> for a list of sync actions. For more information about this parameter, see the <a href='https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAB/index.html#CSHID=ImportExportParams'>Oracle Eloqua Developer Help Center</a>.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/SyncAction"
      }
    },
    "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": {
    "MemberStatus": {
      "title": "MemberStatus",
      "description": "The status of members.",
      "default": "bounced",
      "enum": [
        "bounced",
        "subscribed",
        "unsubscribed",
        "active",
        "complete",
        "pending",
        "errored",
        "yes",
        "no",
        "invalid",
        "permission"
      ],
      "type": "string"
    },
    "SyncAction": {
      "title": "SyncAction",
      "description": "The definition of the action to take at time of syncronization.",
      "properties": {
        "action": {
          "$ref": "#/$defs/SyncActionType"
        },
        "destination": {
          "title": "destination",
          "description": "The ML statement used to reference an object used by the action.",
          "type": "string"
        },
        "status": {
          "$ref": "#/$defs/MemberStatus"
        },
        "updateAll": {
          "title": "updateAll",
          "description": "Update status of all records in an execution.",
          "type": "boolean"
        }
      }
    },
    "SyncActionType": {
      "title": "SyncActionType",
      "description": "The action to take at time of synchronization.",
      "default": "add",
      "enum": [
        "add",
        "remove",
        "setStatus"
      ],
      "type": "string"
    }
  }
}