Get import configuration records
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
{- "importConfigs": [
- {
- "id": "string",
- "name": "string",
- "type": "string",
- "url": "string",
- "allowErrors": true,
- "recordLimit": 0,
- "transformationId": "string",
- "storageId": "string"
}
], - "totalRecords": 0
}
Create import configuration
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
id | string unique identifier for the config - a UUID |
name | string The name of the harvest configuration at the time of logging the harvest run. |
type | string The type of harvest job (bulk XML or OAI-PMH) |
url | string The URL(s) used for retrieving the records that were harvested during this job. |
allowErrors | boolean Indicates whether the job was configured to continue in case of (certain classes of) errors. |
recordLimit | integer Indicates the limit -- if any -- on the maximum number of records to load according to the configuration. |
transformationId | string unique identifier for the transformation pipeline - a UUID |
storageId | string unique identifier for the storage pipeline - a UUID |
{- "id": "string",
- "name": "string",
- "type": "string",
- "url": "string",
- "allowErrors": true,
- "recordLimit": 0,
- "transformationId": "string",
- "storageId": "string"
}
{- "id": "string",
- "name": "string",
- "type": "string",
- "url": "string",
- "allowErrors": true,
- "recordLimit": 0,
- "transformationId": "string",
- "storageId": "string"
}
Get import configuration record
id required | string Import configuration identifier |
query | string CQL |
offset | string result set start row |
limit | string result set max rows |
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
{- "id": "string",
- "name": "string",
- "type": "string",
- "url": "string",
- "allowErrors": true,
- "recordLimit": 0,
- "transformationId": "string",
- "storageId": "string"
}
Update an import configuration
id required | string Import configuration identifier |
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
id | string unique identifier for the config - a UUID |
name | string The name of the harvest configuration at the time of logging the harvest run. |
type | string The type of harvest job (bulk XML or OAI-PMH) |
url | string The URL(s) used for retrieving the records that were harvested during this job. |
allowErrors | boolean Indicates whether the job was configured to continue in case of (certain classes of) errors. |
recordLimit | integer Indicates the limit -- if any -- on the maximum number of records to load according to the configuration. |
transformationId | string unique identifier for the transformation pipeline - a UUID |
storageId | string unique identifier for the storage pipeline - a UUID |
{- "id": "string",
- "name": "string",
- "type": "string",
- "url": "string",
- "allowErrors": true,
- "recordLimit": 0,
- "transformationId": "string",
- "storageId": "string"
}
{- "id": "string",
- "name": "string",
- "type": "string",
- "url": "string",
- "allowErrors": true,
- "recordLimit": 0,
- "transformationId": "string",
- "storageId": "string"
}
Load XML document using given import configuration
id required | string Import configuration identifier (UUID) |
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
property name* additional property | any |
start verticle for given config ID that listens for incoming source records
id required | string Import configuration identifier (UUID) |
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
stop verticle for given config ID that listens for incoming source records
id required | string Import configuration identifier (UUID) |
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
Create job log samples for test purposes etc, for example by import from another FOLIO instance.
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
id | string unique identifier for this report of a single harvest run - a UUID |
importConfigName | string The name of the import configuration at the time of logging the harvest run. |
importConfigId | string Unique identifier of the import configuration - a UUID. |
importType | string The type of import job (bulk XML or OAI-PMH) |
url | string The URL(s) used for retrieving the records that were harvested during this job. |
allowErrors | boolean Indicates whether the job was configured to continue in case of (certain classes of) errors. |
recordLimit | integer Indicates the limit -- if any -- on the maximum number of records to load according to the configuration. |
transformation | string The name of the transformation pipeline that was used for the harvest job. |
storage | string The name of the storage that was used for persisting the records harvested during the job. |
status | string The outcome of the job. This would usually be the status after the job finished but it's possible to retrieve a history entry for a still running job. |
started | string Timestamp indicating when the job began. |
finished | string Timestamp indicating when the job completed. |
amountHarvested | integer The number of (incoming) records that were processed. |
message | string A description of the outcome of the harvest job, for example update statistics or a fatal error. |
{- "id": "string",
- "importConfigName": "string",
- "importConfigId": "string",
- "importType": "string",
- "url": "string",
- "allowErrors": true,
- "recordLimit": 0,
- "transformation": "string",
- "storage": "string",
- "status": "string",
- "started": "string",
- "finished": "string",
- "amountHarvested": 0,
- "message": "string"
}
{- "id": "string",
- "importConfigName": "string",
- "importConfigId": "string",
- "importType": "string",
- "url": "string",
- "allowErrors": true,
- "recordLimit": 0,
- "transformation": "string",
- "storage": "string",
- "status": "string",
- "started": "string",
- "finished": "string",
- "amountHarvested": 0,
- "message": "string"
}
Retrieves list of past import jobs
query | string CQL query, import config ID, name, type, status, message, and amount imported in queries, and the same fields plus started and finished in sorting |
offset | string result set start row |
limit | string result set max rows |
from | string date range start parameter on finished date |
until | string date range end parameter on finished date |
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
{- "importJobs": [
- {
- "id": "string",
- "importConfigName": "string",
- "importConfigId": "string",
- "importType": "string",
- "url": "string",
- "allowErrors": true,
- "recordLimit": 0,
- "transformation": "string",
- "storage": "string",
- "status": "string",
- "started": "string",
- "finished": "string",
- "amountHarvested": 0,
- "message": "string"
}
], - "totalRecords": 0
}
Retrieves details of a previous harvest job
id required | string <uuid> Import job identifier |
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
{- "id": "string",
- "importConfigName": "string",
- "importConfigId": "string",
- "importType": "string",
- "url": "string",
- "allowErrors": true,
- "recordLimit": 0,
- "transformation": "string",
- "storage": "string",
- "status": "string",
- "started": "string",
- "finished": "string",
- "amountHarvested": 0,
- "message": "string"
}
Retrieves the log of a past import job
id required | string <uuid> Import job identifier |
query | string CQL, supporting import config ID, config name, line in query terms |
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
For importing job logs from another source.
id required | string <uuid> Import job identifier |
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
Array of objects (logLine) Collection of log statements. | |||||||||||
Array
|
{- "logLines": [
- {
- "id": "string",
- "importJobId": "string",
- "timeStamp": "string",
- "jobLabel": "string",
- "line": "string"
}
]
}
Retrieves the failed records of an import job
id required | string <uuid> Import job identifier |
query | string CQL query |
from | string date range parameter on error report timestamp |
until | string date range parameter on error report timestamp |
offset | string result set start row |
limit | string result set max rows |
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
{- "failedRecords": [
- {
- "id": "string",
- "importJobId": "string",
- "importConfigId": "string",
- "importConfigName": "string",
- "recordErrors": [
- {
- "error": {
- "label": "string",
- "typeOfError": { },
- "typeOfRecord": "string",
- "transaction": "string",
- "message": { },
- "entity": { }
}
}
], - "original": "string",
- "transformedRecord": { },
- "timeStamp": "string",
- "recordNumber": "string"
}
]
}
Create failed record samples without running a job, for example to import from another FOLIO instance.
id required | string <uuid> Import job identifier |
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
Array of objects (failedRecord) List of failed records. | |||||||||||||||||||
Array
|
{- "failedRecords": [
- {
- "id": "string",
- "importJobId": "string",
- "importConfigId": "string",
- "importConfigName": "string",
- "recordErrors": [
- {
- "error": {
- "label": "string",
- "typeOfError": { },
- "typeOfRecord": "string",
- "transaction": "string",
- "message": { },
- "entity": { }
}
}
], - "original": "string",
- "transformedRecord": { },
- "timeStamp": "string",
- "recordNumber": "string"
}
]
}
Get step records
query | string CQL |
offset | string result set start row |
limit | string result set max rows |
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
{- "steps": [
- {
- "id": "string",
- "name": "string",
- "enabled": false,
- "description": "string",
- "type": "XmlTransformStep",
- "inputFormat": "string",
- "outputFormat": "string",
- "script": "string"
}
], - "totalRecords": 0
}
Create step
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
id | string Unique identifier for the transformation step. |
name required | string A name assigned to the transformation step. |
enabled | boolean Default: false Indicates if this step is available to be used in a transformation pipeline. |
description | string Additional descriptions of the storage definition. |
type | string Enum: "XmlTransformStep" "CustomTransformStep" Type of transformation step. |
inputFormat | string Free-text indication of the format of input data to the step. |
outputFormat | string Free-text indication of the format of the resulting output from the step. |
script | string Transformation script, typically XSLT. |
property name* additional property | any |
{- "id": "string",
- "name": "string",
- "enabled": false,
- "description": "string",
- "type": "XmlTransformStep",
- "inputFormat": "string",
- "outputFormat": "string",
- "script": "string"
}
{- "id": "string",
- "name": "string",
- "enabled": false,
- "description": "string",
- "type": "XmlTransformStep",
- "inputFormat": "string",
- "outputFormat": "string",
- "script": "string"
}
Get detailed transformation step definition record
id required | string Step identifier |
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
{- "id": "string",
- "name": "string",
- "enabled": false,
- "description": "string",
- "type": "XmlTransformStep",
- "inputFormat": "string",
- "outputFormat": "string",
- "script": "string"
}
Update a transformation step definition
id required | string Step identifier |
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
id | string Unique identifier for the transformation step. |
name required | string A name assigned to the transformation step. |
enabled | boolean Default: false Indicates if this step is available to be used in a transformation pipeline. |
description | string Additional descriptions of the storage definition. |
type | string Enum: "XmlTransformStep" "CustomTransformStep" Type of transformation step. |
inputFormat | string Free-text indication of the format of input data to the step. |
outputFormat | string Free-text indication of the format of the resulting output from the step. |
script | string Transformation script, typically XSLT. |
property name* additional property | any |
{- "id": "string",
- "name": "string",
- "enabled": false,
- "description": "string",
- "type": "XmlTransformStep",
- "inputFormat": "string",
- "outputFormat": "string",
- "script": "string"
}
{- "id": "string",
- "name": "string",
- "enabled": false,
- "description": "string",
- "type": "XmlTransformStep",
- "inputFormat": "string",
- "outputFormat": "string",
- "script": "string"
}
Update a transformation step script
id required | string Step identifier |
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
property name* additional property | any |
Get transformation definitions
query | string CQL |
offset | string result set start row |
limit | string result set max rows |
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
{- "transformations": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "enabled": "true"
}
], - "totalRecords": 0
}
Create transformation pipeline
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
id | string Unique record identifier (UUID). |
name | string Name of the transformation pipeline. |
description | string Details about the pipeline. |
enabled | string Enum: "true" "false" Indicates if the transformation pipeline can be used by harvest jobs |
property name* additional property | any |
{- "id": "string",
- "name": "string",
- "description": "string",
- "enabled": "true"
}
{- "id": "string",
- "name": "string",
- "description": "string",
- "enabled": "true"
}
Get transformation pipeline record
id required | string Transformation pipeline identifier |
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
{- "id": "string",
- "name": "string",
- "description": "string",
- "enabled": "true"
}
Update a transformation pipeline
id required | string Transformation pipeline identifier |
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
id | string Unique record identifier (UUID). |
name | string Name of the transformation pipeline. |
description | string Details about the pipeline. |
enabled | string Enum: "true" "false" Indicates if the transformation pipeline can be used by harvest jobs |
property name* additional property | any |
{- "id": "string",
- "name": "string",
- "description": "string",
- "enabled": "true"
}
{- "id": "string",
- "name": "string",
- "description": "string",
- "enabled": "true"
}
Get transformation step associations
query | string CQL |
offset | string result set start row |
limit | string result set max rows |
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
{- "transformationSteps": [
- {
- "id": "string",
- "stepId": "string",
- "transformationId": "string",
- "position": "string",
- "step": {
- "id": "string",
- "name": "string"
}, - "transformation": "string"
}
], - "totalRecords": 0
}
Create new transformation step association
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
id | string unique identifier for the association | ||||||
stepId required | string UUID referencing a transformation step. | ||||||
transformationId required | string UUID referencing a transformation pipeline. | ||||||
position required | string The position of the step amongst other transformation steps in the pipeline. | ||||||
object DEPRECATED, legacy Harvester schema, contains id of step that is associated with a pipeline | |||||||
| |||||||
transformation | string DEPRECATED, legacy Harvester schema, id of the transformation pipeline that the step is associated with. |
{- "id": "string",
- "stepId": "string",
- "transformationId": "string",
- "position": "string",
- "step": {
- "id": "string",
- "name": "string"
}, - "transformation": "string"
}
{- "id": "string",
- "stepId": "string",
- "transformationId": "string",
- "position": "string",
- "step": {
- "id": "string",
- "name": "string"
}, - "transformation": "string"
}
Get a transformation step association by ID
id required | string Association identifier |
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
{- "id": "string",
- "stepId": "string",
- "transformationId": "string",
- "position": "string",
- "step": {
- "id": "string",
- "name": "string"
}, - "transformation": "string"
}
Update a transformation step association
id required | string Association identifier |
X-Okapi-Tenant | string Okapi Tenant |
X-Okapi-Token | string Okapi Token |
X-Okapi-Url | string Okapi URL |
id | string unique identifier for the association | ||||||
stepId required | string UUID referencing a transformation step. | ||||||
transformationId required | string UUID referencing a transformation pipeline. | ||||||
position required | string The position of the step amongst other transformation steps in the pipeline. | ||||||
object DEPRECATED, legacy Harvester schema, contains id of step that is associated with a pipeline | |||||||
| |||||||
transformation | string DEPRECATED, legacy Harvester schema, id of the transformation pipeline that the step is associated with. |
{- "id": "string",
- "stepId": "string",
- "transformationId": "string",
- "position": "string",
- "step": {
- "id": "string",
- "name": "string"
}, - "transformation": "string"
}
{- "id": "string",
- "stepId": "string",
- "transformationId": "string",
- "position": "string",
- "step": {
- "id": "string",
- "name": "string"
}, - "transformation": "string"
}