Bulk update hierarchy connections
Learn more about updating hierarchy connections in bulk.
Use the Bulk update hierarchy connections to create and delete connections within a specified hierarchy instance. The API processes all operations as a single change set, applying CREATE operations before DELETE operations, regardless of their order in the request.
If validation or preparation fails, the API rejects the entire request without saving any connection changes. This operation requires the MDM.Data.Hierarchy permission with the UPDATE privilege.
HTTP method and endpoint
Use the following HTTP method and endpoint path to update hierarchy connections in bulk.
PUT {platformUrl}/reltio/api/{tenantId}/hierarchies/{instanceId}/connections
Replace {platformUrl} with your Reltio platform base URL.
The following table describes the endpoint path parameters.
| Parameter | Type | Required | Description |
|---|---|---|---|
tenantId | String | Yes | Identifier of the tenant. |
instanceId | String | Yes | Identifier of the hierarchy instance to update. |
Query parameters
The following table describes the query parameters and their values.
| Parameter | Type | Required | Description | Accepted values / Default |
|---|---|---|---|---|
options | String | No | Controls validation of the requested CREATE and DELETE operations against configured hierarchy rules. | ignoreValidation skips configured structural rules. Validation is performed by default. |
The ignoreValidation option does not bypass cycle prevention, date validation, endpoint and entity-type validation, or connectivity checks.
Request headers
The following request headers must be included.
| Header | Value | Required |
|---|---|---|
Authorization | Bearer <access_token> | Yes |
Content-Type | application/json | Yes |
Request body
The request body is a JSON array of connection operations. The following table describes the request body parameters.
| Parameter | Type | Required | Description | Accepted values / Default |
|---|---|---|---|---|
operation | String | Yes | Operation to perform for the array item. | CREATE or DELETE |
parent | Object | For CREATE when using a crosswalk | Crosswalk that identifies the parent entity. | Do not specify with parentId. |
parent.type | String | Yes with parent | Source type of the parent crosswalk. | Example: configuration/sources/XYZ |
parent.value | String | Yes with parent | Value of the parent crosswalk. | Source-specific value |
parent.sourceTable | String | No | Source table of the parent crosswalk. | Source-specific value |
parentId | String | For CREATE when using an entity ID | Entity ID of the parent. | Do not specify with parent. |
child | Object | For CREATE when using a crosswalk | Crosswalk that identifies the child entity. | Do not specify with childId. |
child.type | String | Yes with child | Source type of the child crosswalk. | Example: configuration/sources/Reltio |
child.value | String | Yes with child | Value of the child crosswalk. | Source-specific value |
child.sourceTable | String | No | Source table of the child crosswalk. | Source-specific value |
childId | String | For CREATE when using an entity ID | Entity ID of the child. | Do not specify with child. |
startDate | String | No | Start effective date of the connection. | ISO 8601 date in YYYY-MM-DD format |
endDate | String | No | End effective date of the connection. | ISO 8601 date in YYYY-MM-DD format |
connectionId | String | For DELETE | Identifier of the connection to remove. A missing connection causes the entire request to fail. | Existing connection ID |
For each CREATE operation, either the parent or child must already belong to the hierarchy being modified.
Example request
Use the following example to create one connection and delete another connection.
[
{
"operation": "CREATE",
"parent": {
"type": "configuration/sources/XYZ",
"value": "I12345",
"sourceTable": "USERS"
},
"child": {
"type": "configuration/sources/Reltio",
"value": "cldId"
},
"startDate": "2024-01-01"
},
{
"operation": "DELETE",
"connectionId": "CNTC_1"
}
]
Response body
A successful request returns 200 OK. CREATE results appear first in their request order, followed by DELETE results in their request order.
| Field | Type | Description |
|---|---|---|
status | String | Operation result: CREATED or DELETED. |
connectionId | String | Generated connection ID for CREATE, or removed connection ID for DELETE. |
parentId | String | Resolved parent entity ID for a CREATE result. |
childId | String | Resolved child entity ID for a CREATE result. |
startDate | String | Start effective date of the created connection, when specified. |
endDate | String | End effective date of the created connection, when specified. |
createdBy | String | Person who created the connection. Returned for a CREATE result. |
createdTime | String | Date and time when the connection was created. Returned for a CREATE result. |
updatedBy | String | Person who last updated the connection. Returned for a CREATE result. |
updatedTime | String | Date and time when the connection was last updated. Returned for a CREATE result. |
Crosswalks in a CREATE request are resolved to entity IDs in the response. Results do not contain the operation field. A DELETE operation that disconnects part of a hierarchy turns the disconnected subtree into a separate hierarchy or hierarchy version.
Example response
The following example shows a successful response for one created connection and one deleted connection.
[
{
"status": "CREATED",
"connectionId": "CNTC_2",
"parentId": "prtId",
"childId": "cldId",
"startDate": "2024-01-01"
},
{
"connectionId": "CNTC_1",
"status": "DELETED"
}
]