Importing complex relations
Command structure |
---|
|
Identifier
The identifier for a complex relation may contain any of the following fields:
id
externalSystemId
andexternalEntityId
RELATION_TYPE_ID:RELATION_DIRECTION
The list of relations, also known as complex relation legs, does not guarantee the unique identification of a complex relation. This method is prone to error in cases where there are two complex relations in Collibra:
- One complex relation with legs A, B and C.
- Another complex relation with legs A, B, C and D.
In this example, identifying a complex relation by the legs A, B and C results in an error because the API cannot determine which of the two complex relations it should process. In cases like this, use one of the other identification methods.
Code snippets in this section may show redundant data to demonstrate the fields accepted by the import API.
Identifier structure |
---|
|
Optional fields
Field name | Field type | Remarks |
---|---|---|
attributes | ATTRIBUTE_TYPE_ID or ATTRIBUTE_TYPE_NAME |
Sets or updates the complex relation attributes. |
complexRelationType | id or name |
Sets the complex relation type. Should only be used for create operations. It is silently ignored for update operations. |
relations | RELATION_TYPE_ID:RELATION_DIRECTION
|
Sets or updates the relations of the complex relation based on the relation type id and the direction. |
Expected behavior
The behavior is similar to the commands for communities and domains.
Add operation
If the complex relation needs to be created, the following fields have to be provided in order to import successfully:
relations