Working with the Import API v2
The import functionality allows you to create or edit data in bulk in Collibra. By importing, you can create and edit communities, domains, assets, mappings, or complex relations and their characteristics such as attributes, relations, responsibilities, and tags.
All Import API operations require authentication. For instructions, see the Collibra REST API authentication tutorial.
Import REST API endpoints and parameters
You can import communities, domains, assets, mappings and complex relations using the following endpoints:
/import/json-job/import/csv-job/import/excel-job
Mandatory parameters
You must provide the following parameters:
| Parameter | Parameter type | Description |
|---|---|---|
| fileId |
String (UUID) |
The universally unique identifier (UUID) of a file previously uploaded to Collibra Platform. |
| file |
String (binary) |
The JSON, CSV or Excel file. During the import, CSV and Excel files are converted to JSON. |
| template |
String |
The JSON template interprets the tabular data for CSV and Excel files. |
You cannot provide both fileId and file in the same call because the operation will fail. Use only one of the two options.
Optional import parameters
The following table summarizes additional Import API v2 POST parameters:
| Parameter | Parameter type | Description |
|---|---|---|
| sendNotification | Boolean |
Whether notifications about the import job should be sent. The default value is |
| simulation | Boolean |
Whether to test the import before applying any changes to Collibra. When This parameter does not apply to synchronization requests. It is only relevant for import and ignored for synchronization methods. The default value is Enabling both continueOnError and simulation in the same request is not supported. |
| continueOnError | Boolean |
Whether the import should continue if some of the import commands are invalid or failed to execute.
If The default value is Enabling both continueOnError and simulation in the same request is not supported. |
| fileName | String |
The name the file will receive once uploaded to Collibra. The default value is |
| deleteFile | Boolean |
Whether to delete the import file after a successful import. Regardless of this setting, the file is kept in case of a failed import. The default value is |
| relationsAction | String | The action to take in case of existing relations for the specified relation types. The possible values are:
The default value is |
| attributesAction | String | The action to take in case of existing attributes for the specified attribute types. The possible values are:
The default value is: |
| synchronizationId | String (UUID) | The synchronization ID of the operation. |
To avoid possible performance issues:
- Disable indexing and hyperlinking calculations before starting import or synchronization operations that handle large volumes of data.
- Restrict import jobs to a maximum of 50,000 resources (communities, domains, assets, complex relations or mappings) and 500,000 additional characteristics (attributes, relations or tags).
Additional resources
- Read the Getting Started with the Import API tutorial.
- Consult the Collibra REST Import API documentation provided with your version of Collibra Platform at https://<your_collibra_url>/api-docs/index.html?urls.primaryName=import-api.