Create hierarchy connections
Learn more about how to use the hierarchy connections API to create one or more connections in a hierarchy instance.
Use the Create Hierarchy connections to create new connections in a hierarchy instance. This operation requires the MDM.Data.Hierarchy permission with the CREATE privilege.
HTTP method and endpoint
Use the following HTTP method and endpoint path to submit the request:
POST https://<environment>.reltio.com/reltio/api/{tenantId}/hierarchies/{instanceId}/connections
Request headers
The following request headers must be included.
| Header | Value | Required |
|---|---|---|
Authorization | Bearer <token> | Yes |
Query parameters
The following table describes the query parameters and their values.
| Parameter | Type | Required | Description | Accepted values / Default |
|---|---|---|---|---|
options | String | No | Controls whether the connections in the request are validated against the structural rules configured for the hierarchy type. If you omit this option, the operation validates the requested connections and returns an error if any of them violate a structural rule. Existing structural rule violations elsewhere in the hierarchy don't prevent the requested connections from being created. | ignoreValidation skips structural validation. By default, validation is performed. |
Request body
The request body is a JSON array of connection definition objects.
| Field | Type | Required | Description |
|---|---|---|---|
parent | Object | Yes, when you identify the parent entity by crosswalk | The object that contains the parent details for the new connection. Note: Do not pass both parentId and the parent crosswalk (type, value, and sourcetable) object for the same connection. |
parent.type | String | Yes, when you use a crosswalk for the parent entity | The source type of the crosswalk that refers to the parent entity. Example:configuration/sources/XYZ |
parent.value | String | Yes, when you use a crosswalk for the parent entity | The value of the crosswalk that refers to the parent entity. Example: I12345 |
parent.sourceTable | String | No | The source table of the crosswalk that refers to the parent entity. Example: Users |
parentId | String | Yes, when you identify the parent entity by entity ID | The entity ID of the parent entity. Either the parent entity or the child entity must already be part of the hierarchy that you are modifying. |
child | Object | Yes, when you identify the child entity by crosswalk | The object that will contain child details for the new connection.. Note: Do not pass both childId and the child crosswalk (type, value, and sourcetable) object for the same connection. |
child.type | String | Yes, when you use a crosswalk for the child entity | The source type of the crosswalk that refers to the child entity. Example: configuration/sources/XYZ |
child.value | String | Yes, when you use a crosswalk for the child entity | The value of the crosswalk that refers to the child. Example: I54321 |
child.sourceTable | String | No | Source table of the crosswalk that refers to the child entity. Example: Users |
childId | String | Yes, when you identify the child entity by entity ID | The entity ID of the child entityobject. Either the parent entity or the child entity must already be part of the hierarchy that you are modifying. |
startDate | String | No | The start effective date of the connection. Format: YYYY-MM-DD. |
endDate | String | No | The end effective date of the connection. Format: YYYY-MM-DD. |
Example request
Use the following example to see how a complete request is structured with headers.
POST /{instanceId}/connections
Authorization: Bearer <token>
[
{
"parent": {
"type": "configuration/sources/XYZ",
"value": "I12345",
"sourceTable": "USERS"
},
"child": {
"type": "configuration/sources/Reltio",
"value": "cldId"
},
"startDate": "2024-01-01",
"endDate": "2026-12-31"
},
{
"parentId": "cldId",
"childId": "grdcldId",
"startDate": "2024-05-01",
"endDate": "2025-12-31"
}
]
Response fields
The following table describes the fields returned in the response body, which is an array of hierarchy connection objects.
| Field | Type | Description |
|---|---|---|
connectionId | String | The connection ID. |
parentId | String | The entity ID of the parent object. |
childId | String | The entity ID of the child object. |
startDate | String | Optional. The start effective date of the connection in ISO 8601 date format. |
endDate | String | Optional. The end effective date of the connection in ISO 8601 date format. |
createdBy | String | The username of the user who created the connection. |
createdTime | String | The time when the connection was created, in ISO 8601 date-time format. |
updatedBy | String | The username of the user who last updated the connection. |
updatedTime | String | The time when the connection was last updated, in ISO 8601 date-time format. |
Example response
The following example shows the response body.
[
{
"connectionId": "connId1",
"parentId": "prtId1",
"childId": "cldId1",
"startDate": "2024-01-01",
"endDate": "2026-12-32",
"createdBy": "john.smith@reltio.com",
"createdTime": "2024-10-10T10:13:30",
"updatedBy": "john.smith@reltio.com",
"updatedTime": "2024-10-10T10:15:30"
},
{
"connectionId": "connId2",
"parentId": "prtId2",
"childId": "cldId2",
"startDate": "2025-01-01",
"endDate": "2027-12-32",
"createdBy": "john.smith@reltio.com",
"createdTime": "2024-10-10T10:13:30",
"updatedBy": "john.smith@reltio.com",
"updatedTime": "2024-10-10T10:15:30"
}
]