{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eloqua/json-schema/eloqua-import-schema.json",
  "title": "Import",
  "description": "The request body defines the details of the import definition. The following table displays properties for creating import 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/Import",
  "properties": {
    "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"
    },
    "dataRetentionDuration": {
      "title": "dataRetentionDuration",
      "description": "The length of time that unsync'd data from this import 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 P7D (7 days) if not explicitly set during import definition creation.",
      "type": "string"
    },
    "externalSystemId": {
      "title": "externalSystemId",
      "description": "The id of the external system.",
      "type": "integer"
    },
    "fields": {
      "title": "fields",
      "description": "List of fields to be included in the operation.",
      "type": "object"
    },
    "identifierFieldName": {
      "title": "identifierFieldName",
      "description": "The field which will be used to identify the entity. Must be a string value, at least 1 character and at most 100 characters long. The following field types are not supported: Large Text, Date, and Boolean.",
      "type": "string"
    },
    "importPriorityUri": {
      "title": "importPriorityUri",
      "description": "Must reference an existing <code>/imports/priorities/{id}</code>. 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": "string"
    },
    "importRule": {
      "$ref": "#/$defs/ImportRuleType"
    },
    "isSyncTriggeredOnImport": {
      "title": "isSyncTriggeredOnImport",
      "description": "Whether or not the sync is triggered on import.",
      "type": "boolean"
    },
    "isUpdatingMultipleMatchedRecords": {
      "title": "isUpdatingMultipleMatchedRecords",
      "description": "Whether or not imported data will be mapped to multiple existing records. For contact imports, the <code>isUpdatingMultipleMatchedRecords</code> property must be set to <code>false</code> to update <code>Contact.Field(C_EmailAddress)</code>.",
      "type": "boolean"
    },
    "kbUsed": {
      "format": "int64",
      "title": "kbUsed",
      "description": "The amount of space used in kilobytes. This is a read-only property.",
      "type": "integer"
    },
    "name": {
      "title": "name",
      "description": "The name of the import definition.",
      "type": "string"
    },
    "nullIdentifierFieldName": {
      "title": "nullIdentifierFieldName",
      "description": "Whether or not to null the identifier field.",
      "type": "boolean"
    },
    "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>.\n\nThere currently are not any sync actions available for Events.",
      "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"
    },
    "updateRule": {
      "$ref": "#/$defs/RuleType"
    },
    "updateRuleByField": {
      "title": "updateRuleByField",
      "description": "The rule by field used when doing updates on existing data. Each pair is a field name mapped to a rule type.",
      "type": "object"
    },
    "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": {
    "ImportRuleType": {
      "title": "ImportRuleType",
      "description": "Import.ImportRuleType_Description",
      "default": "createAndUpdate",
      "enum": [
        "createAndUpdate",
        "updateOnly",
        "createOnly"
      ],
      "type": "string"
    },
    "MemberStatus": {
      "title": "MemberStatus",
      "description": "The status of members.",
      "default": "bounced",
      "enum": [
        "bounced",
        "subscribed",
        "unsubscribed",
        "active",
        "complete",
        "pending",
        "errored",
        "yes",
        "no",
        "invalid",
        "permission"
      ],
      "type": "string"
    },
    "RuleType": {
      "title": "RuleType",
      "description": "The rule used when doing updates on existing data. 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>.",
      "default": "always",
      "enum": [
        "always",
        "ifNewIsNotNull",
        "ifExistingIsNull",
        "useFieldRule"
      ],
      "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"
    }
  }
}